Warren Buffett’s Berkshire Hathaway Inc. reached a deal to buy Occidental Petroleum Corp.’s petrochemical business for about $9.7 billion in cash.