An influx of immigrants helped ease worker shortages, and now their expulsion is helping to mask the country’s weakening demand for labor.