US President Donald Trump has signed an executive order that could make it harder for highly skilled foreign workers to enter or stay in the country.