The Government has described Boris Johnson's proposal for an amnesty for illegal immigrants as "naive".