Calling federal regulation of the railroad industry '' an abject failure , '' New York 's attorney general , Eliot Spitzer , said on Monday that the railroad giant CSX Transportation Inc. had agreed to pay $ 1 million to settle state charges that it violated safety laws by failing to report and promptly fix hundreds of warning-signal malfunctions at grade crossings across the state .