Judge: Walgreens contributed to San Francisco opioid crisis