Four drug companies reach last minute opioid settlement