But top legal body also rules that higher education programs catering to Haredi men cannot discriminate against female lecturers and bars segregation outside classrooms