Before New Year’s Day celebrations in New York, the FBI and other agencies manned a command post to monitor the city’s events.