The final tally showed the two parties already in power - Union Progressiste le Renouveau and Bloc Republicain - came first and second with 37.56% and 29.23% of votes respectively.
The party of former President Thomas Boni Yayi, Les Démocrates, came third with 24.16%.
The court's distribution of seats remained unchanged from the electoral commission's count, giving UP le Rénouveau 53 seats and Les Démocrates and Bloc Républicain 28 each.
Yayi's supporters led demonstrations in 2019 after opposition parties were blocked from the legislative vote for failing to meet strict new eligibility criteria.
None of the remaining four parties competing for the 109 seats gathered enough votes to meet the 10% threshold for parliamentary representation.
Voter turnout was just 37.79%, the court said, lower than the 38.66% recorded by the electoral commission.
Benin's image as a bastion of democracy and stability in West Africa has been dented under President Patrice Talon, who went back on a pledge not to run for a second term and oversaw an opposition crackdown since coming to power in 2016.