WASHINGTON (AP) — President Donald Trump has signed a massive $867 billion farm bill that reauthorizes agriculture and conservation programs without any cuts to the food stamp program.

Trump signed the bill Thursday after the Agriculture Department announced plans to tighten work requirements for recipients of food aid. Negotiations over the farm bill had stalled for months in Congress over a provision by the House to cut the Supplemental Nutrition Assistance Program and over the Senate’s unwillingness to go along.

Trump had voiced strong support for stricter work requirements.

Agriculture Secretary Sonny Perdue says the regulation to tighten work requirements was a tradeoff for Trump’s support for the bill.

The farm bill will cost roughly $400 billion over five years or $867 billion over 10 years.