President Trump’s chief of staff tried to persuade the acting homeland security secretary to end a program that shields about 300,000 immigrants from deportation.