President Trump signed an executive order that instructed federal agencies to consider an employer's recent or impending layoffs of its American workers when deciding on its H-1B visa petitions, the clearest move by any president to link the guest worker program to job-cutting at home.