Court ruling on Conservative leadership election