The US president's remarks come amid a deepening feud with Ukraine's President Volodymyr Zelenskyy.