A top Pentagon official defended Nvidia Corp. as crucial to US efforts to compete with China in open-source artificial intelligence, a day after the company’s newly reinstated CEO Jensen Huang answered lawmakers’ questions about an affair with a suspected Chinese spy and the div…