The Senate voted 51 to 48 on Thursday, largely along party lines, to defeat a war powers resolution that had previously passed the House of Representatives.
Only three Republicans - Susan Collins of Maine, Lisa Murkowski of Alaska and Rand Paul of Kentucky - voted with Democrats in favour of the resolution. One Democrat, John Fetterman of Pennsylvania, voted with Republicans against it.
The vote marked the first time the Senate had considered a major Iran war-related measure since Democratic victories in the midterm elections on November 3. Trump's fellow Republicans, who rarely break with the president, stood behind him in support of the US-Israel war on Iran that started on February 28.
Democratic Senator Tim Kaine of Virginia, who has called repeatedly for Congress to take back its control over declarations of war, said the midterm election result reflected Americans' unhappiness about the war, and higher prices for food, fuel and other goods linked to the conflict.
"Its unpopularity was made absolutely, manifestly clear in the election results of November 3," Kaine said in a speech before the vote appealing for yes votes.
Meanwhile, the costs of the Iran war have risen to an estimated $US48.3 billion ($A72.3 billion) as of November 13, but because that total does not include damage to US bases attacked in the Middle East, lawmakers are pushing for the Pentagon to provide those figures.
Arthur Miller, a Pentagon budget official, provided the latest overall cost estimate on Thursday to the Senate Armed Services Committee, which is considering his nomination to be Navy comptroller.
The $US48 billion ($A72 billion) figure includes the costs of military operations, as well as for replacing equipment and munitions.
Democratic Senator Richard Blumenthal of Connecticut pressed Miller for an estimate on damage to US installations, which Miller said he didn't have. Republican Senator Roger Wicker of Mississippi, the committee's chair, directed Miller to try to provide an answer as soon as possible.
An Associated Press analysis found Iran attacked aircraft hangars, systems that detect incoming strikes, warehouses, troop housing and more, causing billions of dollars in equipment damage.
The war's price tag has been a flashpoint in Congress, with debates over costs intensifying as the Trump administration asks lawmakers to pass a $US1.5 trillion ($A2.2 trillion) defence budget.
After the unpopular war and its economic effects contributed to severe Republican losses in the midterm elections, financial battles over the conflict will only escalate once Democrats take control of Congress in January for the remainder of President Donald Trump's term.
The Pentagon has faced growing calls from Democrats to release estimates on the damage Iran has done to American bases in the Middle East through missile and drone attacks.
Senator Elizabeth Warren, a Democrat from Massachusetts, grilled acting Navy Secretary Hung Cao on the costs of the war at his confirmation hearing Tuesday for the permanent job.
Citing independent estimates and media reports, Warren said the US naval blockade on Iranian shipping costs about $US32.5 million ($A48.7 million) a day, while an Iranian attack on the Navy's regional headquarters in Bahrain did at least $US400 million ($A599 million) in damage.
Cao confirmed the figure for the blockade but said he could not offer a full damage assessment in Bahrain because "it's a non-permissive area for us to go." Cao told a reporter months ago that Iran "blew the hell out of Bahrain."
with AP