LONDON — Jeremy Corbyn, the leader of Britain’s Labour Party, agreed at a meeting of opposition lawmakers on Tuesday to shelve his plan for toppling Prime Minister Boris Johnson next week and instead focus on passing a law to head off a no-deal Brexit.

That strategy, favored by more centrist lawmakers, will face considerable hurdles when Parliament reconvenes in September. But the ability of the anti-Brexit contingent in Parliament to agree on any plan at all was a mark of progress for a group that has been rived by disagreements about how to stop Mr. Johnson, who has vowed to pull Britain out of the European Union by Oct. 31, with or without a deal.

[Boris Johnson announced plans to lengthen a parliamentary break, making it harder for lawmakers to prevent a no-deal Brexit.]

Mr. Johnson has sought to use the threat of a no-deal Brexit as leverage in talks with the European Union on modifying the plan for Britain’s withdrawal, and managed to hold the door open to a reworked Brexit deal in talks with European leaders this weekend.