The vote was expected to come down to the wire, as many feared that the government had lost the support of key centrists and the conservatives who felt the text did not do enough to bring down France’s budget deficit, which is projected to come in at an eye-watering 5.4 percent of gross domestic product this year.

But in the end, all 91 lawmakers belonging to French President Emmanuel Macron’s party Renaissance voted for the bill, while a majority of MPs from the conservative Les Républicains either abstained or voted in favor.

The vote on Tuesday also exposed a rift between the government and Edouard Philippe, Macron’s first prime minister and a candidate in the 2027 presidential election, who felt the the bill will not do enough to bring down the deficit. Despite being historic Macron allies, most lawmakers from Philippe’s small center-right party followed his call to abstain.

Unsurprisingly, France’s political extremes — the far-right National Rally and the far-left France Unbowed — came out against the social security bill.

Lecornu’s victory Tuesday appears to validate, at least temporarily, his strategy of trying to seek a compromise in France’s hung parliament. The PM in October ruled out using a constitutional backdoor to push through legislation without a vote to ensure his political survival, instead letting parliamentary debates drag on chaotically for weeks in the hopes that lawmakers could strike a deal.

Had the legislation been shot down, it might have cost Lecornu his job. President Emmanuel Macron would have then faced the unsavory options of either hunting for a sixth prime minister in less than two years or calling a snap election that could strengthen the hand of the far-right National Rally.