The aggressive push to cut fossil fuels brought an unwelcome twist: dramatically higher electricity costs that are hobbling industry and fraying political consensus.