State officials said New York had faced a $187 million cut to grants that have funded counterterrorism work, bomb squads, K-9 and tactical units and other work since the Sept. 11, 2001 attacks.