The American firm said last week that he had stopped work at his fertilizer factories in Billingham on Teesside and Ince in Cheshire due to soaring gas prices.
Norwegian company Yara also said it was cutting production at ammonia plants across Europe, including one in Hull.
This created a crisis in the food industry because CO2 which is a by-product of the fertilizer manufacturing process is used to stun farm animals before slaughter as well as in the vacuum packaging process.
This prompted warnings that buyers might start to notice shortages of poultry, pork and baked goods within days.
This put pressure on ministers to act on a ripple effect of the European-wide gas price crisis that threatened to have a major impact on consumers.
Details of the deal between the government and CF Industries were to be revealed later.
He came as the the prime minister told Sky News the energy crisis was a “short-term problem” and said he didn’t think there would be a disruption of food supplies on Christmas.