Sam Altman will return to lead OpenAI less than five days after he was pushed out of one of the world’s most valuable startups, setting off a shock back-and-forth drama that transfixed Silicon Valley and the global AI industry.