Kraft Heinz Co. was a classic Warren Buffett bet in many ways: an easy-to-understand company stocked with iconic American brands.

“This is my kind of transaction,” the Omaha, Neb., billionaire said during the 2015 merger of H.J. Heinz Co. and Kraft Foods Group Inc., “uniting two world class organizations and delivering shareholder value.”

The...