The regulated US utility became a big energy trader. It depended on credit, but rising leverage undermined its rating. That made it vulnerable to the credit crunch. Warren Buffett’s MidAmerican rode to the rescue, driving a hard bargain. It probably won’t be his last.