The search giant has a lot to gain from SpaceX’s upcoming initial public offering.