The accord , in which Universal agreed to pay $ 12 million to New York charities , was the biggest so far in a sweeping investigation of the music industry that has been led by Eliot Spitzer , the New York attorney general .