A growing number of large law firms are signing new long-term leases with the hope of luring attorneys back to the office.