The state is confronting aging infrastructure and rising new demand as it seeks to decarbonize its energy supply.