Electricity rivals NextEra Energy and Dominion Energy have agreed to merge, creating the world’s largest utility.