Elon Musk said Tuesday that the boards of SpaceX and Tesla have each formed special committees to study merging his two biggest companies, a deal that would put rockets, electric cars, humanoid robots, a social network and the Grok chatbot inside a single corporation worth roughly $3.5 trillion.