US frees Mexican man who was arrested despite work permit