In one of the largest opioid settlements reached by a standalone company to a state, Walgreens agreed to pay $500 million in a case New Mexico brought.

Baron & Budd’s Dan Alberstone and Mark Pifko, Los Angeles shareholders who represented New Mexico, announced the settlement on Friday after a bench trial, which wrapped up on Oct. 18.