WASHINGTON - The House voted Friday to prevent President Donald Trump from launching into war with Iran without getting Congress’ approval first, after more than two dozen Republicans joined Democrats to include the provision in the House’s annual defense authorization bill.

The move sets up a likely showdown with the Senate over whether the Iran restriction, which includes an exception for cases of self-defense, will be included in the final bill negotiated between the two chambers. Republican leaders in the House and Senate have argued that the language would send a bad message to Tehran that the United States is divided, complicating the president's ability to manage escalating tensions.

The Iran amendment is just one of several high-profile measures that lawmakers voted this week to include in the first defense authorization bill Democrats have steered through the House since taking over the majority earlier this year. Those measures, which range from ending U.S. participation in Saudi Arabia's military campaign in Yemen to undoing Trump's ban on transgender troops, helped secure the support of liberal Democrats from the congressional Progressive Caucus, who had previously warned that they might vote against the defense bill.

But those measures risked losing Democrats what waning Republican support existed for the House's defense bill. Republican leaders have accused Democrats of playing politics in a way that is "shameful," House Minority Leader Kevin McCarthy, R-Calif., said Friday morning.

"Our national security is not a game. But that is exactly how Democrats are treating it," McCarthy said of the bill.

"In fact, our bill isn't just good, it's better than the ones that the Republican Party has put together, because we believe the Pentagon should be accountable," Smith continued.

At the heart of the dispute between Republicans and Democrats is a disagreement over how much money Congress should allocate to the Pentagon and military this year. Republicans and the Trump administration want a $750 billion bill, which is the overall size of the defense authorization bill that the Senate passed last month. But the House's bill clocks in at $733 billion - a figure that Smith argued military leaders endorsed previously.

For liberal Democrats, $733 billion was too steep a jump over the current fiscal year’s $717 billion authorization. In an effort to level out spending, they proposed a $16.8 billion reduction to the war funding authorized under the bill, but the effort failed to pass the House Friday morning, after Republicans and many Democrats opposed it.