President Donald Trump was told aboard Air Force One in May en route to China that the United States had obtained sensitive intelligence showing that Nvidia’s CEO was in a relationship with a woman believed to be a Chinese spy, people with knowledge of the matter said.