The monitoring of Wall Street firms has become a lucrative area for former prosecutors, some of whom are also finding work in compliance departments at hedge funds.