The party, which has governed since 2019, gained the most votes but saw its weakest results in over a century.