The resiliency of remote work has prompted large law firms to rethink their real estate footprint, shedding space even as they bulk up their head count.