Earlier this year , the New York attorney general , Eliot Spitzer , said a two-year investigation of the nation 's largest title insurance companies had revealed illegal payments to agents , favored customers and real estate developers .