(CNN) -- In a surprising and embarrassing setback for House Republican leaders, legislation to overhaul the nation's farm programs failed in the GOP-controlled House of Representatives Thursday.
The bill was defeated by a coalition of House conservatives who said the bill spent too much on food stamps and nutrition programs and House Democrats who opposed both the cuts to those food stamp programs and a GOP-backed amendment that added new work requirements for those applying for assistance.
The measure failed 195 - 234, with 62 Republicans joining 172 Democrats to oppose the bill, and just 24 Democrats voting with 171 Republicans to approve it.
House Speaker John Boehner, who for most of his congressional career has voted against farm bills, made a rare move last week and pledged that he would vote for this version. House speakers don't regularly vote on legislation so Boehner's announcement was an effort to get GOP members to go along with some reforms short of what they wanted in exchange for getting the farm bill through the House to the next step - a conference with the Senate on its version. Boehner made the case that doing nothing kept the same programs in place and the only way to ultimately reduce the size and scope of agriculture programs was to pass a House bill.
The rejection of the bill was a personal defeat for Boehner, and another example of how a sizeable block within the GOP conference has been willing to break with the speaker.
Ahead of the vote Thursday there was no sign that Republican leaders were worried the bill could fail. There was considerable pressure from outside conservative groups like the Club for Growth and Heritage Action to get GOP members to vote no, and several House Republican aides anticipated they would lose a bloc of votes from their own side. But GOP leaders felt comfortable that Minnesota Rep Collin Peterson, a moderate who is the top Democrat on the Agriculture Committee and who helped draft the bill, would help bring along as many as 40 votes to pass it. .
"The Democrats sandbagged us," one senior House GOP leadership aide told CNN after the vote.
GOP leaders were clearly stunned as the time expired on the vote clock inside the House chamber and it became clear that the measure was about to fail. House members stood on the floor silently looking up at the vote board and the vote time was extended for several minutes as GOP leaders consulted with Peterson and others to see whether it was possible to flip enough votes to get the bill through.
When the gavel came down with the unexpected result the blame game went into high gear.
Peterson told reporters outside the House chamber that a chunk of Democratic support peeled off after passage of a GOP amendment adding work requirements for food stamp recipients. He said he warned Republican Chairman of the Agriculture Committee, Rep Frank Lucas, R-Oklahoma, and House GOP Leader Eric Cantor that allowing a vote on that change would put the bill's passage in question.
"I told them in the last two days not to accept that amendment," Peterson said. He also said a change to the bill providing new subsidies for dairy farmers also cost some Democratic votes.
Rory Cooper, spokesman for House Majority Leader Cantor, disputed Peterson's account, saying that "there were no surprises today" and that Democrats knew those changes were expected to be added to the bill. Cooper also said Peterson assured leaders he had significantly more Democratic votes than he delivered.
Cantor released a statement saying House Democrats "shamefully chose politics over progress and meaningful reform."
House Democratic Leader Nancy Pelosi mocked the Republicans' charge that Democrats pulled the rug out at the last minute, telling reporters, "If we ever came to you when we had the majority and said we didn't pass a bill because we didn't get enough Republican votes, well that's really silly. It's sad, it's juvenile, it's unprofessional, it's amateur hour."
Peterson said he was willing to work with Republicans to salvage the bill, but said he expected the failed effort would mean Congress would end up having to pass another temporary extension of the current farm policy laws. This was the second time House Republican leaders could not get a farm bill package through the House. Last summer they postponed a similar vote because they didn't have enough support to pass it.
"If you overreach you get nothing and that is what we've been trying to tell people " Peterson said, adding, "If you take things too far than sometimes it blows up on you."
Senate Agriculture Chairwoman Debbie Stabenow, D-Michigan, called on Boehner to bring up the Senate passed farm bill. "Maintaining the status quo means no reform, no deficit reduction, and further uncertainty that slows growth in our agriculture industry. This is totally unacceptable."
Conservative groups opposed to federal farm policy claimed victory and said the vote gives new momentum to do away with many of the current programs.
"The time for reform is now. We need to put farm subsidies on a path to elimination and we need to devolve food stamps to the state level where they belong. With $17 trillion in debt, the American taxpayers don't have time to wait," Club for Growth President Chris Chocola said in a written statement.
House Republican leaders were still considering next steps, and while it's doubtful they would allow a vote on the Senate bill, it's unclear whether they will attempt to revive the House measure.
™ & © 2013 Cable News Network, Inc., a Time Warner Company. All rights reserved.