California Attorney General Xavier Becerra, whose state worked with New York and others, said the states would not appeal a loss in a federal court in New York in February.

"Today's settlement locks in new jobs and protections for vulnerable consumers, and it extends access to telecom services for our most underserved and rural communities," Becerra said in a statement on Wednesday.

Separately on Wednesday, an administrative judge with the California Public Utilities Commission (CPUC) issued a decision approving the proposed merger on condition the companies meet milestones: for example, giving nearly all of California 5G networks by the end of 2026, with download speeds of at least 100 megabits per second. The CPUC is scheduled to make a final decision on April 16.

California, Washington, D.C., and other states that fought the deal will be reimbursed for up to $15 million in litigation costs and receive enforceable commitments on pricing and job protections, Becerra's office said.

The companies agreed to offer all the plans that T-Mobile had in place in February 2019, or better, to residents of the plaintiff states for five years, according to a copy of the signing document seen by Reuters.

New T-Mobile has committed to offering residents of the plaintiff states two low-cost plans for at least five years, including one for $25 per month with 5 gigabytes of high-speed data.

The merged company agreed to offer all of T-Mobile and Sprint's retail employees in good standing in the plaintiff states substantially similar employment.

The plaintiff states involved in the settlement are California, Connecticut, Hawaii, Illinois, Maryland, Massachusetts, Michigan, Minnesota, Oregon, Pennsylvania, Virginia, Washington, D.C., and Wisconsin.

"While I would have preferred this megamerger not to move forward, I am pleased to have secured significant concessions for Connecticut consumers to lock in rates and protect Connecticut jobs," Connecticut Attorney General William Tong said in a statement.

New York had previously said it would not appeal and was not part of the settlement.

The U.S. Justice Department and the Federal Communications Commission signed off on the merger last year after the companies agreed to divest Sprint's prepaid businesses, including Boost Mobile, to satellite television company Dish Network Corp, and give it access to 20,000 cell sites and hundreds of retail locations.

(Reporting by Diane Bartz in Washington; Editing by Matthew Lewis, Lisa Shumaker and Jonathan Oatis)