The U.S. president accused the Ukrainian leader of "gambling with World War III," in a testy exchange at the White House.