Gains in aerospace contracts and commercial automotive earnings lifted Musk’s net worth back across the trillion-dollar mark.