The $340 billion deal unites two former fossil fuel giants now committed to leading the clean energy transition.