Several New York law firms last year even bested their 2021 performance during the heyday of the deal market.