SpaceX agreed to acquire a nationwide wireless spectrum portfolio from Grain Management to expand its satellite-based cellular service into a full-fledged U.S. mobile carrier.