Kimberly-Clark Corp. agreed to buy Kenvue Inc. for roughly $40 billion, snapping up the embattled Tylenol maker’s storied brands in a gamble that would vault the Kleenex producer into consumer ...