Apple needs to buy Tesla and run it better than Elon Musk can right now. He's overloaded himself with responsibilities.
Apple could do a lot of good by applying their skills to such an important problem. And Tesla's have been called "laptops on wheels" which has some truth it. They have the money, people, and management skill to do it well. Tesla has the industry lead that Apple needs to get in the race.
First thing Tim Cook would do is cancel the semi project, I'd guess. But maybe not.