A Times investigation reveals the inside story of the Trump administration’s chaotic push for a peace deal and its erratic role in the war.