In early 2020, thinking he’d be reelected president that year, Mr. Trump dispatched his secretary of state to negotiate a peaceful withdrawal of nearly all U.S. forces and an end to the U.S. occupation.