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.