Berkshire Hathaway Energy confirmed Friday it will buy debt-ridden Texas power company Energy Future Holdings Corp.