Tens of thousands of immigrants who are living in Texas legally under humanitarian protection could be forced to leave or face deportation after a court ruled that President Trump can end the program.