Generic opiate manufacturer Mallinckrodt has agreed to pay $1.6 billion to settle all the lawsuits against it stemming from the opioid crisis, in a deal backed by 47 attorneys general from states and U.S. territories.

Tuesday's "settlement framework," which also resolves thousands of claims brought by cities and counties in the multidistrict litigation, is among the most significant global settlements by a corporation sued over the opioid crisis.

"Reaching this agreement in principle for a global opioid resolution and the associated debt refinancing activities announced today are important steps toward resolving the uncertainties in our business related to the opioid litigation," said Mark Trudeau, president and chief executive officer of Mallinckrodt, in a statement. "Importantly, when finalized, we believe the proposed settlement and capital restructuring activities will provide us with a clear path forward to achieving our long term strategy, preserving value for our financial stakeholders and providing us with the flexibility to operate effectively."

California Attorney General Xavier Becerra praised the deal Tuesday.

"Nothing can undo the devastating loss and grief inflicted by the opioid epidemic upon victims and their families, but this settlement with Mallinckrodt is an important step in the process of healing our communities," he said in a statement. "Our office has worked aggressively with our coalition partners to hold accountable bad actors who fueled this public health crisis. While today's settlement is a step in the right direction, we'll continue to work to bring more much-needed relief to families throughout California whose lives have been upended by the opioid crisis."

Georgia Attorney General Chris Carr made similar statements.

"This agreement with Mallinckrodt is just one example of the timely solutions needed in our fight against the opioid epidemic," he said. "Our office remains focused on holding accountable those who were responsible for fueling the epidemic and securing resources for victims."

Other states include Connecticut, Delaware, Florida, New Jersey, Pennsylvania, Texas and Washington D.C., according to Mallinckrodt's filings with the U.S. Securities and Exchange Commission.

Texas Attorney General Ken Paxton, whose office also filed opioid lawsuits against Purdue Pharma and Johnson & Johnson, said he was part of a bipartisan coalition of 40 states that served investigative subpoenas on eight companies that manufacture or distribute opiate pharmaceuticals, which are prescription painkillers.

"My office has been aggressively working to hold opioid manufacturers accountable for their deceptive marketing of highly addictive pain pills, which spurred an epidemic and left victims and families with unimaginable consequences," he said in a statement Wednesday. "My focus is on not only accountability, but also obtaining the resources we need to get victims of this epidemic the help they deserve."

The deal would include payments of $1.6 billion over eight years, of which $300 million would come after Mallinckrodt's "specialty generics" subsidiaries emerged from Chapter 11 bankruptcies. Mallinckrodt plc, which is based in England and has U.S. offices in St. Louis, said the agreement involves subsidiaries Mallinckrodt LLC, SpecGx LLC and other affiliates. Neither Mallinckrodt plc nor its "specialty brands" subsidiaries would be part of the bankruptcy.

Plaintiffs would receive another $200 million in the next two years and $150 million for each year after that.

The payments would be part of a trust that would serve as an abatement plan and could purchase shares in Mallinckrodt's subsidiaries once they emerged from Chapter 11.

The plaintiffs' executive committee in the multidistrict litigation negotiated the deal on behalf of thousands of other governments, most of which are cities and counties across the nation.

In an email, the plaintiffs' executive committee said the settlement was the result of a "deep dive" into Mallinckrodt's financial status.

"Such review can lead to the conclusion that a given defendant must consider bankruptcy as the only realistic resolution," wrote committee members Paul Farrell of The Farrell Law Firm, Paul Hanly of Simmons Hanly Conroy and Joe Rice of Motley Rice. "As result of the investigation into the financials and business of SPEC GX and the parent Mallinckrodt, the Plaintiffs' Executive Committee has reached an agreement in principle with drugmaker Mallinckrodt, which will resolve legal claims against the company while creating a mechanism for the company to fund abatement through a pre-arranged bankruptcy plan."

They added that, while the parties had reached a term sheet, they still need their clients to draft, finalize and approve the full agreement, "as the PEC can only recommend a resolution process."