WASHINGTON — The House voted on Thursday to cut off American support for Saudi Arabia’s war in Yemen and to prevent the Trump administration from using its emergency authority to transfer munitions to the kingdom, delivering twin rebukes as Democrats sought to leave their stamp on military policy.

The votes were the opening salvo as Democrats begin an amendment blitz that could reshape Congress’s annual defense policy bill to broadly restrict the president’s war powers and serve as an indictment of the president’s foreign policy.

The bill is shaping up as the next ideological test for Speaker Nancy Pelosi as she tries to balance the interests of the freshman centrists representing Republican-leaning districts with those of her left flank, which might resist passing a military policy bill that does not reflect its liberal priorities. Some liberal members have complained about the sprawling bill’s total military spending — $733 billion — but moderates are reluctant to cut that number, which is already below President Trump’s demands and the Senate’s $750 billion.

This is coming on the heels of a bruising fight over a border spending bill in which the House’s liberal version was ultimately jettisoned for a Senate bill with few controls over how the money would be spent.