Heating homes with natural gas (which the article clarifies is the source of the majority of the emissions) is currently far more efficient than with electricity.
If everyone in NYC switched to electric heat, the grid would certainly fail.
Additionally the grid uses a lot of natural gas for energy production.
Once all the electric production is green, and we have lots of extra capacity, it might make sense to look at reducing natural gas service to homes.
Until then, doing this will actually just make more emissions.