The US president put a positive spin on the success of the Chinese AI software that sent US tech stocks into a tailspin.