SpaceX agreed to acquire a nationwide low-band spectrum license portfolio to combine with its satellite services, challenging major telecom operators while boosting cell-tower stocks.