The Trump administration has prepared a plan to require utilities to buy electricity from struggling coal and nuclear plants so as to extend their life, a move that has sparked a massive outcry from the energy industry.