The state’s attorney general said the federal dollars paid for food for schoolchildren and other essential services.