The House approved a war powers resolution Wednesday that would halt the U.S. military action against Iran, defying President Donald Trump as a handful of Republicans joined with Democrats to end the three-month-long war that has reordered politics at home and abroad.

House Speaker Mike Johnson had tried to prevent an outcome that would show the mounting opposition to the war, abruptly shutting down floor action two weeks ago when the war powers resolution was on the verge of approval. But displeasure has only grown as the conflict drags on and as Trump struggles to negotiate a quick resolution.

The roll call Wednesday was 215-208, and cheers erupted in the House chamber.

“This reckless and costly war of choice needs to end today,” House Democratic Leader Hakeem Jeffries of New York said earlier in the week.

“All we need are a handful of Republicans to join us and we can end this reckless and costly war of choice — a war that has cost the American taxpayer over $100 billion — that’s extraordinary — and left our country in a weaker position relative to Iran.”