The Republican-led House of Representatives voted to direct President Trump to end the war with Iran, passing a war powers resolution 215 to 208 in the clearest congressional rebuke yet of his handling of the conflict and its economic fallout. It was the first time the chamber has successfully passed such a measure on Iran, after three earlier attempts this year fell short.

Four Republicans crossed the aisle to join a unified Democratic minority: Representatives Thomas Massie of Kentucky, Brian Fitzpatrick of Pennsylvania, Tom Barrett of Michigan and Warren Davidson of Ohio. Their votes were enough to carry the resolution over the objections of Republican leaders, who argued it would 'weaken the president's hand' in negotiations with Tehran.

The resolution invokes the War Powers Act, which requires the president to seek congressional authorisation for sustained military action, and orders an end to US hostilities against Iran absent such approval. Its backers framed the vote as an assertion of Congress's constitutional role over questions of war and peace after months of strikes and counter-strikes in the Gulf.

For all its symbolic weight, the measure is unlikely to change policy. Democrats have been unable to advance a companion resolution through the Senate, and even if they could, the White House would be expected to veto it, a threshold that a divided Congress has no realistic prospect of overriding. Mr Trump dismissed the Republicans who supported it as 'grandstanders.'

The vote nonetheless laid bare unease within the president's own party over an open-ended conflict that has rattled energy markets, pushed up oil prices and weighed on stocks. The defections, spanning libertarian and centrist Republicans, suggested the political costs of the war were beginning to register on Capitol Hill even as the administration pursued a ceasefire.

Democrats cast the resolution as a marker for the historical record and a warning to the administration that further escalation would meet resistance in Congress. Republican leaders countered that the timing undercut delicate diplomacy at a moment when negotiators were said to be close to a memorandum extending the ceasefire. The clash set up a continuing fight over who controls the country's path in the war.