Gov. Gavin Newsom joined the company’s CEO in making the announcement, though Musk has criticized California before.