Law firms rake it in on the investment market