Israeli police say they have arrested eight people during a protest by ultra-Orthodox Jews in Jerusalem.