U.S. chip gear maker Applied Materials Inc. agreed Monday to buy Japanese peer Kokusai Electric for $2.2 billion from KKR & Co. as it bets on rising demand for memory chips used in data centers, 5G phones and AI-powered devices.