 The tech entrepreneur Elon Musk says he's moving the headquarters of his social media and space companies from California to Texas because of a new law on gender identity. Mr. Musk called it the last straw, complaining that families and companies were coming under attack from the Californian state government.