Power producer NextEra Energy Inc said it agreed to buy Energy Future Holdings Corp as well as the bankrupt Texas power company’s stake in Oncor Electric Delivery Co in a deal with an enterprise value of about $18.4 billion.

The deal will give NextEra access to Oncor, the operator of the largest network of power lines in Texas which it had tried to acquire last year.

— Reuters.