The ruling party won a majority in the last election.

Literal

Ruling-party [topic-は] previous [attributive-の] election [at-で] majority [object-を] occupied.

過半数 ('majority,' literally 'over-half-number') is the formal term for political majorities. 占める ('to occupy / take up [a share]') is used for parliamentary seats, percentages, positions.