The New York transit agency said withholding money for the Second Avenue subway is political retaliation.