Police say they decided to allow hundreds of ultra-Orthodox to attend burial for important rabbi to avoid clashing with participants, tout victory that 'only 400 people' took part