Attorney General Eliot Spitzer confirmed Monday that his office had for several months been investigating ties between a powerful New York teachers ' union and the ING Group , an inquiry that was prompted by an article in Forbes magazine .