The settlement stems from a lawsuit involving the pharmacy and opioids.