A New York man who prosecutors say plotted an attack on Times Square, spoke about killing police officers and praised Islamic militants appeared in court on firearms charges on Friday…