Immigrants line up to renew work permits as program ends