Four drug companies reach last-minute settlement in opioid litigation