Musk said in a tweet that he reached out to Apple during the “darkest days” of development of his company’s Model 3.