(Reuters) - Sempra Energy said it will buy Oncor for $9.45 billion in cash after Energy Future Holdings Corp, which indirectly owns Oncor, abandoned a deal to sell the power transmission company to Warren Buffett's Berkshire Hathaway Inc .