CalRecycle granted $2.1 million to the San Francisco Department of the Environment, which will use the money to expand its network of workers that recover high-quality food that would otherwise go to waste and distribute it to nonprofits and food pantries. City officials said they recovered 5 million pounds of food last year, averting it from landfills and reducing harmful greenhouse-gas emissions.