As Wall Street has faced a string of scandals, bank executives, investors and customers have suffered. But one group is thriving: lawyers.