The company has agreed to buy wireless spectrum licenses from Echostar.