2 men accused in plan to attack NYC synagogue face judge