U.S. intelligence is warning of threats to the election infrastructure and the midterm elections from foreign countries like China and Russia.