US drug companies reach tentative deal to settle opioids lawsuit