The House of Representatives voted 227-186 on Wednesday in favor of a resolution that would limit President Trump's ability to direct military action against Iran without authorization from Congress.

Why it matters: It's a bipartisan rebuke of the president's foreign policy toward Iran that has now been passed in both the House and Senate. The bill, which is expected to be vetoed by Trump, was first introduced in the wake of the president's decision to order a strike that killed Iranian Gen. Qasem Soleimani, bringing the U.S. to the brink of war with Iran.

Driving the news: Moments before the House passed the resolution, the Pentagon confirmed that two U.S. service members had been killed by a rocket attack in Iraq. Officials have not yet said who was responsible, but past rocket attacks of this sort have been attributed to Iranian-backed Shiite militias.

Between the lines: The House in January passed a "concurrent" war powers resolution, which does not have the force of law or go to the president's desk for a signature. "This is a statement of the Congress of the United States," Speaker Nancy Pelosi said at the time. "I will not have that statement diminished by having the president veto it or not."

The new measure is a more forceful "joint" resolution, meaning it can sent to Trump's desk to be enacted into law. Neither the House nor the Senate have the two-thirds majority necessary to override Trump's veto.

The big picture: This is not the first time bipartisan members of Congress have joined forces to rebuke Trump's Middle East policies. The Senate has passed resolutions calling on Trump to pull U.S. support from the Saudi-led coalition in the war in Yemen and blocking the administration's sale of arms to Saudi Arabia. Both were vetoed by Trump.