If the plan is to phase out natural gas heating in a reasonable timeframe, you need to stop new investments in it soon. A ban is a crude tool, but it may be better than telling residents of new buildings that they must start planning to replace their heating systems, because natural gas deliveries will end in 2035 or 2040.