President Trump has backed Nvidia's decision, which the company says was made with "input from senior levels of the United States government".