Palestinian groups agree to establish elections court