Humans have rights. Governments do not have rights. Governments exercise power. Governments do not exercise rights.
One of the ways we tell if a government exercises power in a moral way is whether human rights are violated.
Clearly, Hitler violated the Jews rights to life. He did not have a right to kill them because he was elected. He used his political power in a way that violated human rights. Exporting illegal aliens violates no one's rights. So, his analogy fails.
Jews have the right to life (as do the unborn). Illegal aliens do not have the right to remain in the country. If they are allowed to stay, it is our choice in how we exercise our power to enforce our laws, but it is not out of any rights they have.