The money will pay for efforts to prevent and treat opioid addiction, or fund services that help people in recovery.