After a courtroom loss, companies accused of fuelling America’s opioid crisis rethink their legal strategy