A resolution that bars most funding for the U.S. military mission in Libya failed in the U.S. House of Representatives on Friday, shortly after another measure authorizing the Libya mission suffered the same fate.

The resolution, offered by Rep. Tom Rooney and supported by House Republicans, strikes current-year defense funding for the Libya mission except for search and rescue, intelligence, surveillance, reconnaissance, aerial refueling and operational planning. It failed the House on a 180-238 vote.

A majority of House Republicans supported the bill, with 144 voting in favor of and 89 against it. Democrats were less divided with 36 for and 149 against.

The vote gave the White House a somewhat surprise victory in its spat with the Congress on war powers, as the measure was supported by Republican leadership. House Speaker John Boehner said during floor debate that the measure represents a “reasonable approach” that would let the United States continue to help its NATO allies.