Man was part of group of ultra-Orthodox residents who gathered near a synagogue against health restrictions; he is accused of refusing to disperse, cursing and spitting at officer