NY man charged with planning New Year's Eve terror attack