A senior American diplomat has written a highly critical assessment of the Trump administration’s abrupt withdrawal of troops from northeast Syria last month, a decision that paved the way for an attack on U.S.-allied forces in the area, officials said Thursday.