In trial briefs filed ahead of a second phase of trial this month, lawyers for the city and county of San Francisco said they would need $8.1 billion to fix the opioid crisis, a figure Walgreens called “wildly excessive.”