Sam Altman is returning as OpenAI’s CEO, ending a days-long power struggle that began with his firing late Friday afternoon.