The deal further intermingles Mr. Musk’s companies and creates the most valuable private company on earth.