The aggressive posture taken by Trump and his administration is defining campaigns in both parties for offices that oversee the election process in swing states.