The settlement, announced by City Attorney David Chiu on Wednesday, comes months after a federal judge found in a bench verdict that Walgreens helped fuel the opioid crisis in San Francisco.