But in a floor speech, House Minority Leader Nancy Pelosi, D-Calif., said, ‘‘You are taking food out of the mouths of your own poor constituents.’’
The White House agreed that food stamps should not be left out of the bill. The Obama administration had also threatened to veto the original bill, saying it did not include enough reductions to farm subsidies and the food stamp cuts were too severe.
Farm groups and anti-hunger groups have warned that separating the farm and nutrition programs after linking them since the 1970s would be misguided. Rural lawmakers have long added money for food stamps to the farm bill, which sets policy for agricultural subsidies and other farm programs, to gather urban votes for the measure.
The vote was a welcome victory for Republicans who have struggled to bring their majority together on even bigger issues like immigration and the budget.
‘‘Thank God, we can do something!’’ exclaimed Rep. Tom Rooney R-Fla., as he walked off the floor after the final vote.
Associated Press writer Erica Werner contributed to this report.