The intervention by a president to launch a preemptive challenge against a possible election result casts a new shadow over the midterms.