London (CNN) British Prime Minister Boris Johnson suffered another defeat in the UK Parliament Wednesday, when lawmakers approved a rebel bill to block a no-deal Brexit next month.

The bill, which instructs Johnson to request another Brexit extension if he cannot secure a deal with the European Union in the coming weeks, was approved by 327 votes to 299 in the House of Commons.

It was the only the second substantive vote of Johnson's premiership -- and it was the second time he lost.

Johnson said the legislation amounted to a "surrender bill" and asked for lawmakers to approve his request for an early election. A vote on that measure was due to be held later.

The no-deal Brexit bill, meanwhile, now passes to the House of Lords where it will likely face extensive delaying tactics. Conservative peers, who do not have a majority in the upper house, want to prevent the motion being passed; if they succeed, that could prevent it becoming law before Johnson suspends Parliament early next week.

Read More