Trump appeared to doze off during Xi Jinping’s speech at a China summit while Carney took notes and Putin watched, triggering political criticism and a sharp denial from the White House.