Attorney General Daniel Cameron says he has reached an agreement with companies that helped caused widespread opioid addiction.