Judge OKs law enabling commission to allow wolf hunts