The amount of gas used for cooking is miniscule, accounting for under 3% of consumption[1].
Cooking with fire is different than cooking on an electric or induction stovetop. Banning the use of gas for heating would have been more than enough.
That's before we even get to the amazing fact that 40% of our electricity comes from burning natural gas [2], and that that natural gas powerplant efficiency is about 40%[3].
Which means that with the existing electricity infrastructure, switching from gas to electricity for heating results in more gas being burned.
Talk about putting the cart before the horse.
[1] https://www.livemint.com/opinion/online-views/is-your-cookin...
[2] https://www.eia.gov/energyexplained/electricity/electricity-...
[3] http://needtoknow.nas.edu/energy/energy-sources/fossil-fuels...