Wind farm legal challenge over wildcats thrown out