Trump’s presence underscores the close ties SpaceX owner Elon Musk has established with the president-elect after pouring more than $100 million into his campaign.