The US president's remarks come on the sidelines of a science and technology meeting as controversy over ChatGPT grows