Attorneys general from several states, including New York and California, announced Wednesday a $26 billion proposed global settlement to resolve opioid lawsuits against four companies, including Johnson & Johnson.

The announcement comes two years after many of the same states first negotiated the proposed deal, which resolves the vast majority of more than 4,000 lawsuits against the three largest distributors of opiate pharmaceuticals: AmerisourceBergen Drug Corp., McKesson Corp. and Cardinal Health Inc. It also resolves claims against Johnson & Johnson’s Janssen Pharmaceuticals Inc.