The agreement is aimed at helping companies identify migrants who are working illegally in the UK.