U.K. lawmakers passed crucial legislation in favor of delaying Brexit on Wednesday. The House of Commons ensured the vote by a tally of 327 to 299.

Johnson, who became prime minister in July, had pledged that the U.K. would leave the EU by the Halloween deadline "come what may." He has said that he would put forward a motion to hold a snap general election if the legislation passes on Wednesday.

The new vote comes after a crunch moment in Parliament Tuesday when a majority of lawmakers backed a plan to take control of parliamentary business. This was seen as the first step in a bid to stop a potentially damaging no-deal Brexit, which was also a major blow for Johnson and his government.

A no-deal departure from the EU worries many Members of Parliament (MPs) on both sides of the "Remain" and "Leave" camps as it would mean an abrupt, overnight departure from the EU on October 31 with no transition period.