While I think it is totally bonkers, I think it is probably within the city's authority to forbid institutional food prep and/or a kitchen within spaces zoned for commercial use but not generally accessible to the public.
I don't think they have really thought this through though. For example, would this forbid a soupe kitchen that serves hot meals, how about a nursing home or a hospital?