The ruling followed an application by Baboon Project Kenya.