The House approved legislation Thursday that would cut $39 billion in funds over the next decade for food stamp programs.

Members approved H.R. 3102, the Nutrition Reform and Work Opportunity Act, in a close 217-210 vote. No Democrats voted for the bill, and 15 Republicans voted against GOP leaders.

The bill would authorize food stamp programs for three years.

The legislation, part of which was developed by Majority Leader Eric Cantor (R-Va.), passed in the face of fierce opposition from House Democrats, a White House veto threat, and warnings that it is already dead on arrival in the Democratic Senate.

Several Democrats warned today that cutting $39 billion from the program, formally known as the Supplemental Nutrition Assistance Program (SNAP), is a cruel step that would only hurt people in need.

The non-partisan Congressional Budget Office estimated that up to 3.8 million people will lose food stamp benefits next year.