Enemies and allies alike, according to the Trump doctrine, have long taken advantage of the United States’s lack of clarity and resolve.