After New York 's attorney general , Eliot Spitzer , uncovered dodgy practices in the industry , the Securities and Exchange Commission in 2004 sued three companies that advised Pimco 's stock funds , accusing them of letting a hedge fund make $ 4 billion in improper trades in and out of its portfolios .