Prime Minister Theresa May’s cabinet approved a draft agreement on Britain’s withdrawal from the European Union during an emergency meeting on Wednesday, a crucial and perilous step, as the time left to strike a final deal runs short.

Cabinet support relieves some of the pressure on Mrs. May, who has struggled for months to meet competing demands over the withdrawal, commonly known as Brexit, which is scheduled to occur on March 29.

“The choices before us were difficult, particularly in relation to northern Ireland backstop, but the collective decision of Cabinet was that government should agree the draft withdrawal agreement and the outline political declaration,” she said in a short statement. “This is a decisive step.”

Before the meeting Wednesday, hard-line advocates of Brexit had tried to persuade the full cabinet to reject the draft agreement, or to resign in protest. Either outcome would have been devastating for Mrs. May.