The president-elect has vowed to end a program that allows thousands of people from troubled nations to stay in the United States.