The threat is the latest of Trump’s wide-ranging efforts to undermine democratic processes ahead of the midterms.