Latest departure from Trump White House leaves top-level vacancy at department responsible for immigration enforcement and helping states secure elections