Dentons wins challenge to take-or-pay contract