WASHINGTON ― The House of Representatives on Thursday passed a bill 247-175 to end U.S. support for the bloody Saudi military intervention in Yemen. The vote was a long-awaited victory for a yearslong struggle by lawmakers and activists who took on leaders in bothparties and a fresh political challenge to President Donald Trump.

The Senate passed the resolution last month, which means it now represents the first-ever legislation invoking the landmark War Powers Act to make it through both chambers and head to the White House ― a significant win for anti-war advocates across the political spectrum.

Trump will almost certainly veto the bill ― making it only his second veto so far, and an especially controversial one ― so it won’t immediately stop the American intelligence and logistical aid going to the Saudis and their partners in the war. But international negotiators trying to end the conflict and humanitarian groups say pressure from Congress has a big impact on the chances for peace, and the success of the yearslong campaign seems set to inspire further attempts to rein in U.S. militarism for a long time to come, particularly on Capitol Hill.

“Despite the many procedural roadblocks deployed in both chambers to block this resolution, commitment to human rights and congressional responsibility prevailed,” said Rep. Ro Khanna (D-Calif.), the legislation’s chief sponsor in the House, and Sen. Bernie Sanders (I-Vt.), one of its top backers in the Senate, in a joint statement after the vote. “Finally, the U.S. Congress has reclaimed its constitutional authority over matters of war and peace.”

“This is just the beginning of a national debate over when and where we go to war and Congress’ authority over those interventions,” Sanders wrote on Twitter.