In an effort to move away from fossil fuels, U.S. communities from California to Massachusetts are instituting bans on natural gas in new construction. Proponents say the measures are critical for speeding the transition to an all-electric future powered by renewable energy.