The move, likely to face legal challenges, comes just weeks before early voting starts in the key battleground state.