Last Monday , the New York state attorney general , Eliot Spitzer , said another railroad , CSX , had agreed to pay a $ 1 million fine to settle state charges that it failed to report properly and fix promptly hundreds of warning-signal malfunctions at grade crossings across the state .