Legal challenge to overgrazing on Dartmoor commons to be heard in High Court