The House of Representatives . approved full fiscal-year funding for the United States' domestic security . agency on Tuesday, dealing a blow to conservative Republicans . who wanted Congress to hold out for a bill that included language blocking President . Barack Obama's recent executive orders on immigration. The House, 257-167, backed a Senate-passed funding . bill stripped of any immigration provisions, ending a bitter . fight that raised new questions about House Speaker John . Boehner's ability to manage fractious conservatives, who accused him of 'capitulation' after the Tuesday vote . Obama has said he will sign the funding bill for the . Department of Homeland Security, which spearheads domestic . counterterrorism efforts. Spending authority for the department . was scheduled to end at midnight on Friday. House Speaker John Boehner of Ohio walks to the House chamber on Tuesday as it votes on funding for the Homeland Security Department without provisions attached to counter President Barack Obama's executive actions on immigration. They suffered embarrassing internal divisions that left the country within hours of a partial agency shutdown last week but passed a full fiscal-year funding bill today . The agency came within hours of a partial shutdown last week but the House approved a one-week extension of funding that was later approved by voice vote in the Senate and signed into law by the president. The drama began in December when the legislative branch passed a measure appropriating money to every single government agency through Sept. 30 but DHS, which it only funded through the end of February. Republicans hoped that once they took the majority in January they would have the resources to use the spending bill as a cudgel against Democrats. Yet after weeks of bickering, Boehner ultimately found himself last week  with few - . if any - viable procedural options to keep the agency open while . also satisfying conservatives who wanted the funding bill to . block Obama's executive actions last year lifting the threat of . deportation for millions of undocumented residents. Senate Democrats had repeatedly blocked a House-passed bill . that included the immigration provisions, while Obama and . Democrats backed a 'clean' funding bill passed by the Senate. 'What direction do we have?' House Majority Leader Kevin McCarthy told reporters on Tuesday. Meanwhile, many of the GOP's rank and file seemed ready for the whole debacle to be over. 'It's time to move forward and stop playing these silly games,' Rep. Charlie Dent, a moderate Pennsylvania Republican, said. 'Let's prove to the American people that we're serious about protecting this homeland and that we have the capacity to govern.' 'Sanity is prevailing. I do give John Boehner credit,' New York Rep. Peter King said. Rep. Mike Simpson of Idaho said he's against Obama's immigration directives, but the 'security of the homeland is one of our highest priorities.' Several Republicans said they would be better served by . putting their energy into legal strategies to overturn Obama's . immigration actions, which have been put on hold by the courts. 'This is where we must focus our actions,' said Republican . Rep. Mike Simpson of Idaho. Senate Democratic leader Harry Reid applauded the passage of the House bill while opining that 'many weeks were wasted on political games that left us staring a Homeland Security shutdown square in the face.' 'If this ordeal teaches us one thing, it is that for the sake of our country we must stop governing by crisis,' he said, calling it an 'unnecessary showdown.' 'Common ground should be something we seek, not run away from – especially when the security of our nation is at stake. If we are going to get anything done, we must not be afraid of working together.' Taking a victory lap, Virginia Democrat Tim Kaine said in a statement that he looked forward to working with his fellow senators reforming the immigration process 'now that DHS funding is no longer being held hostage over the President’s immigration executive action.' Department of Homeland Security Chief Jeh Johnson said early Tuesday evening in a statement that Congress 'has done a good thing.' The Obama administration official thanked members 'who showed the leadership necessary to get the job done' and gave DHS personnel a 'vote of confidence in the importance of their work.' 'Now our men and women can return to the vital work of combatting terrorism, ensuring border security, port security, aviation security, cybersecurity, and our other vital homeland security missions, without the uncertainty of a furlough or a delayed paycheck hanging over their heads,' he said. Boehner went from high-flying on Tuesday to chagrined. He's pictured here on Tuesday morning with Israeli Prime Minister Benjamin Netanyahu after a joint meeting of Congress on Capitol Hill. Sen. Orrin Hatch of Utah applauds at right . Some conservatives said the House was making a mistake . by caving to Democrats' demands in the immigration battle. 'Yes, the recent court action gives us some hope that the Judicial Branch will finally rein in this lawless president,' Alabama Rep. Martha Roby said in a statement. 'However, I believe Congress had a responsibility to use its appropriations authority to stop this lawlessness and uphold the checks and balances that exist to protect liberty.' 'This is a very, very sad day,' said Republican . Representative Matt Salmon of Arizona. 'If we're not going to . fight now, when are we going to fight?' Conservative firebrand Steve King of Iowa argued that 'this is the signal of capitulation.' 'The mood of this thing is such that to bring it back from the abyss is very difficult.' House Judiciary Chairman Bob Goodlatte said he voted against the bill because 'the stakes are too high to surrender.' 'This fight is not about immigration; it’s about the Constitution and preserving the rule of law,' he asserted. 'If we don’t stop President Obama’s executive overreach on immigration, future presidents will continue to expand the power of the Executive Branch and encroach upon individual liberty. Goodlatte, a Virginia Republicans, said Congress must use 'all the tools' at its 'disposal to stop the President’s egregious abuse of authority.' His committee will consider a bill later this week that would prohibit the federal government from using funds to enact Obama's mandates. 'We must do all we can within our constitutional authority to stop President Obama’s lawlessness,' he said. Alabama Sen. Jeff Sessions, the greatest detractor of Obama's immigration actions in the upper chamber, vowed on Tuesday to keep battling. 'When it comes to defending our sovereignty there is no "moving on," ' he said just before the House vote. 'Now is not the time for recrimination; now is the time for renewed determination.' 'Those who think this fight is over could not be more mistaken; it is only beginning,' he stated. Senate Minority Leader Harry Reid, center, flanked by Senator Chuck Schumer, left, and Dick Durbin, right, is pictured here on Tuesday at the Capitol. Reid applauded the passage of the House bill on Tuesday while opining that 'many weeks were wasted on political games that left us staring a Homeland Security shutdown square in the face.' Boehner told . Republican House members at a meeting on Tuesday that he wished they had more time to battle Obama but it was . time to allow a vote on the provision-free Senate bill. 'I am as outraged and frustrated as you at the lawless and unconstitutional actions of this president,' Boehner told his caucus, according to aides who spoke to the Associated Press. However, he said, 'I believe this decision — considering where we are — is the right one for this team, and the right one for this country.' 'Imagine if, God forbid, another terrorist attack hits the United States.' Rep. Luke Messer of Indiana, who chairs the Republican Policy Committee, offered a similar version of events to Reuters. 'The speaker made the case that he had hoped to continue to . fight for three more weeks. Obviously we didn't win that vote . last week, so we are where we are.' 'It's disappointing. I had hoped we'd be able to continue to . fight,' he said. Boehner allowed the use of a procedural motion to bring up . the Senate's funding bill, which passed the House with support . from both moderate Republicans and House Democrats. The bill provides nearly $40 billion in funding for the . agency, created after the Sept. 11, 2001 attacks, that secures . U.S. borders, airports, coastal waters and other critical . facilities. Without the funding, the agency would have been forced to . furlough about 30,000 employees, or about 15 percent of the . agency's workforce. About 200,000 others would have stayed . on the job without pay, including airport and border security . agents.
It was a blow to Republicans who wanted Congress to hold out for a bill that included language blocking President Obama's immigration orders . The House, 257-167, backed a Senate-passed funding bill stripped of any immigration provisions, ending a bitter fight on Capitol Hill . Money for the department was scheduled to run out at midnight on Friday . 'This is a very, very sad day,' said Republican Rep. Matt Salmon of Arizona. 'If we're not going to fight now, when are we going to fight?' Rep. Steve King of Iowa argued that 'this is the signal of capitulation'
Senate Democratic leader Harry Reid called the ordeal an 'unnecessary showdown'
DHS chief Jeh Johnson thanked members 'who showed the leadership necessary to get the job done'