SpaceX, which has been investing heavily in AI infrastructure, could net over $30 billion from the three-year deal.