The reason given was that he received expenses, covering the basic costs of his trip, when he came to Britain last year and this constitutes "illegal working".
It is, however, very unlikely the courts would strike down any effort by Congress to prohibit illegal residents from working or obtaining welfare benefits, including federal efforts to solicit or entice the states to cooperate in such efforts through the use of federal grants and mandates.