A White House adviser spearheaded a desperate initiative that could have resulted in voting machines in half of the U.S.