The transaction would value Elon Musk’s startup at a valuation higher than OpenAI’s record-setting $500 billion, people familiar with the matter said.