The agreements in principle, announced on Wednesday, are dependent on the participation of cities, counties and states suing the pharmacies over the opioid crisis.