A bipartisan deal that would keep the federal government operating, and suspend the national debt, until after the 2016 presidential election passed in the U.S. House of Representatives on Wednesday by a 266-167 vote.

Two conservative Republican House members from Washington, U.S. Reps. Dan Newhouse and Jaime Herrera Beutler, voted against the measure. It was supported by the state’s six Democratic House members as well as Republican Reps. Dave Reichert and Cathy McMorris Rodgers.

The legislation goes to the Senate, where approval is expected. It was negotiated with the White House by Republican and Democratic leaders of the House and Senate, and represents a final achievement by House Speaker John Boehner before yielding his position to incoming Speaker Paul Ryan.

“Republicans have finally engaged in constructive conversations that have produced a two-year, bipartisan budget deal. The agreement, reached by Republican and Democratic leaders, would increase funding equally for defense and non-defense investment and will help ensure that our economy continues to grow while providing opportunities for middle-class Americans,” said Rep. Adam Smith, D-Wash., a senior member of the Washington delegation.

Observed Rep. Derek Kilmer, D-Wash.: “Like any compromise, this isn’t perfect, but it’s good to see Congress hammer out a compromise agreement that sets aside political grandstanding and prevents our economy from going off a cliff.”

The agreement provides for $80 billion in new spending, divided equally between defense and discretionary domestic spending. It would tighten eligibility requirements for a Social Security disability program, and reduces Medicare spending by cutting payments to doctors.

The vote marks one of the few times Rep. Herrera Beutler has broken with Rep. McMorris Rodgers, a member of the House Republican leadership. Herrera Beutler once worked for McMorris Rodgers.

In explaining her vote, Herrera Beutler sounded almost apocalyptic about the national debt, saying: “In the last few years, we have seen the economies of nations collapse under the weight of crushing debt — and the livelihoods, retirements and economic prospects of their citizens collapse with them.”

Newhouse won a narrow victory last November in his Central Washington district over Tea Party Republican Clint Didier. Newhouse appears to have been looking over his shoulder ever since. He has compiled a down-the-line conservative voting record, even taking a hard line on immigration issues in a district whose agricultural economy depends on Latino farm workers.

“Fiscal responsibility and common sense demand better, as do American taxpayers, farmers and rural communities, which is why I could not support this deal,” Newhouse said in a statement.

While dysfunctional on most matters, the House Republican majority has shied away from partial government shutdowns after a disastrous experience in the fall of 2013. Ryan negotiated a budget deal with Sen. Patty Murray, D-Wash., who chaired the Senate Budget Committee, that avoided confrontations over the budget and debt for nearly two years.

Ryan made rumbles about the latest deal, opposed by hard-right House Republicans, but voted for it Wednesday, saying: “As with any budget agreement, this one has some good, some bad and some ugly.”

And Rep. Suzan DelBene, D-Wash., saw the budget deal as a hint that Congress might get its act together, arguing: “We must break the cycle of brinkmanship that has regularly defined the dysfunction of Congress and move past manufactured crises that have serious consequences for our families, seniors and the middle class.”