House Republicans passed legislation late Friday to address the crisis on the U.S.-Mexico border by sending migrant youths back home without hearings, winning over conservatives with a companion bill that could lead to deporting more than half a million immigrants whom the Obama administration granted temporary work permits. President Obama condemned the Republican action and said he'd act unilaterally, as best he could.

A day after GOP leaders pulled the border bill from the floor in a chaotic retreat, Tea Party lawmakers were enthusiastically on board with the new $694 million version and a companion measure that would shut off a program created by Obama granting work permits to immigrants brought here illegally as kids. The second bill also seemed designed to prevent the more than 700,000 people who've already gotten work permits under the program from renewing them, ultimately making them subject to deportation.

The spending bill passed 223-189 late Friday, with only four Republicans voting "no" and one Democrat voting "yes." The measure ending Obama's deportation relief program passed 216-192, with 11 Republican "no" votes and four Democrats crossing party lines to vote in favor.

"It's dealing with the issue that the American people care about more than any other, and that is stopping the invasion of illegal foreign nationals into our country," said Rep. Michele Bachmann, R-Minn.

But Obama said no. "They're not even trying to solve the problem," the president said. "I'm going to have to act alone, because we do not have enough resources."

Obama said he would reallocate resources where he could, while making clear his options were limited without congressional action. The administration already has taken steps including re-ordering immigration court dockets and boosting enforcement measures.

The moves in the House came on what was to have been the first day of lawmakers' five-week summer recess, delayed by GOP leaders after their vote plans unexpectedly collapsed on Thursday. Senators had already left Washington after killing their own legislation on the border crisis, so there was no prospect of reaching a final deal. But three months before midterm elections, House Republicans were determined to show that they could take action to address the crisis involving tens of thousands of unaccompanied minors fleeing violence and poverty in Central America to cross illegally into Texas.

To reach a deal, GOP leaders had to satisfy the demands of a group of a dozen or more conservative lawmakers who were meeting behind the scenes with Sens. Ted Cruz, R-Texas, and Jeff Sessions, R-Ala., and taking their cues from outside groups such as the Heritage Foundation that opposed earlier versions of the legislation.

Also Friday, Congress approved a $225 million package to replenish Israel's missile defenses with its last order of business before a five-week recess, as the Jewish state's cease-fire with Hamas unraveled and Israeli forces pushed deep into Gaza in search of a missing army officer.