Federal judge rules for Wyoming in wolf lawsuit