Brett McGurk, who was the top Middle East adviser to President Joseph R. Biden Jr., offered the first inside-the-room account of American efforts to manage the Gaza war.