Even Milton Friedman seemed uncertain about this issue. According to Bryan Caplan, Friedman was once asked whether immigrants might be given a legal right to work, but not the right to claim welfare benefits:
http://clubtroppo.com.au/2008/07/20/the ... feudalism/

(This is so much to digest.)