Pharmacy chain Walgreens Boots Alliance and other defendants on Tuesday said they were not to blame for the opioid crisis in San Francisco, and that they acted responsibly when providing legal medications to patients in pain.