The Senate voted Tuesday to block President Donald Trump from resuming the war with Iran, setting up a potentially contentious fight with the White House.

The Senate passed the resolution 50-48, with four Republicans joining Democrats to support the measure. Two Republican senators — Mitch McConnell (Kentucky) and Dave McCormick (Pennsylvania) — missed the vote, allowing the measure to pass.