The move came ahead of a hotly-contested Wisconsin Supreme Court election.