Illegal immigrants discovered hiding behind a secret 'trap door' within a huge £300,000 cannabis factory have been locked up.