Francis is talking as a politician here and not as a teacher of faith and morals.

Immigration policy is the domain of temporal rulers and not spiritual rulers. The Catechism outlines the rights and responsibilities of both immigrants and their host countries.