Apple and its CEO Tim Cook have in recent months sought to strengthen the company’s relationship with the White House, amid policy changes from Trump that could threaten its business.