US terminates legal status for 500,000 immigrants