The deal, announced on Friday by the state of New Mexico’s outside counsel Baron & Budd, is one of the largest opioid settlements to date involving one state and a single defendant.