Sam Altman is returning OpenAI as CEO, culminating a days-long power struggle that shocked the tech industry and brought attention to artificial intelligence conflicts.