Police officer challenges ban on unions