The state of Washington has reached a $518 million settlement with three drug distributors over their role in the opioid crisis.

Tuesday’s announcement from Attorney General Bob Ferguson comes after the state wrapped up a bench trial against the distributors last month but before King County Superior Court Judge Michael Scott had ruled on the case. Ferguson said the settlement was $46 million greater than if his state had participated in a $26 billion global opioid deal reached last year.