President Donald Trump has signed an executive order to tighten the rules for technology companies seeking to bring highly skilled foreign workers to the U.S.