Prime Minister Theresa May's government was defeated on Wednesday, when lawmakers forced through changes to its Brexit blueprint that ministers said could endanger Britain's departure from the European Union.

In a blow to May, already weakened after losing her Conservative Party's majority in a June election, the 650-seat Parliament voted 309 to 305 in favor of an amendment to hand lawmakers more say over a final exit deal with the EU.

Up until the last minute of an often bitter debate, May's team tried to convince lawmakers in her party to give up their demands and side with a government fearful that the move will weaken its hand in tough Brexit negotiations.