Law firms are taking advantage of favorable market conditions and making longer-term commitments amid an apparent shift toward “densification.”