The whipsawing legal battle unfolding days before the first states begin sending out mail ballots could have major ramifications for the midterms.