The settlement caps lengthy and arduous negotiations among the firm , the Securities and Exchange Commission and the New York Stock Exchange , and makes Bear Stearns the last major Wall Street firm to pay fines in connection with improper fund trading practices first uncovered by Eliot Spitzer , the New York attorney general , in 2003 .