The settlement is for the role they had in helping fuel the opioid crisis as federal prosecutors says the company "knew the risks."