SpaceX’s shares soared in premarket trading after the world’s richest person, Elon Musk, pledged to personally donate a share of his space and artificial intelligence company to every American child each year, building on a combined stock giveaway worth nearly $18 billion announced by him and his company earlier this week.