British Prime Minister Theresa May won the support of her bitterly divided cabinet for a draft divorce deal with the European Union that has put both Brexit and her leadership at stake.

May emerged from a five-hour meeting with ministers that had sent the value of the pound gyrating to announce she had the government’s “collective” backing to move ahead with the plan.

May said outside her Downing Street office, the collective decision of cabinet was that the government should agree the draft withdrawal agreement and the outline political declaration.

A spokesman said the meeting ended without any explicit threats of resignation and everyone unwinding with a glass of wine and some snacks.

But the embattled leader conceded that she could face even stronger resistance when she takes the 585-page text to parliament for approval next month.

The European Union’s Chief Brexit negotiator Michel Barnier said the divorce was making “decisive progress” that still required “lots and lots of work”.