T-Mobile CEO John Legere (L) speaks as Sprint CEO Marcelo Claure looks on at the New York Stock Exchange, April 30, 2018.

Dish Network and T-Mobile have agreed to a divestiture deal that brings the wireless carrier a step closer to gaining government approval of its merger with Sprint, people familiar with the matter told CNBC's David Faber.

However, there are still issues the Department of Justice is actively focused on before it would allow a deal, the sources added.

While the corporations involved have agreed on some of the largest components of the divestiture deal, the government remains concerned that the agreement isn't enough to ensure Dish would represent meaningful competition following the $26 billion merger between Sprint and T-Mobile.