Kristjen Nielsen wrote in her resignation letter that "despite our progress in reforming homeland security for a new age, I have determined that it is the right time for me to step aside."