I can easily think of several worse foreign policy decisions...all made by Democrat Presidents.
Hummmmmm here’s a piece of history on bad treaties from Democrats, - look up the Washington Naval Treaty.
https://en.wikipedia.org/wiki/Islamic_State_of_Iraq_and_the_Levant
According to a study compiled by United States intelligence agencies in early 2007, the ISI planned to seize power in the central and western areas of Iraq and turn it into a Sunni caliphate.[102] The group built in strength and at its height enjoyed a significant presence in the Iraqi governorates of Al Anbar, Diyala and Baghdad, claiming Baqubah as a capital city.[103][104][105][106]
The Iraq War troop surge of 2007 supplied the United States military with more manpower for operations targeting the group, resulting in dozens of high-level AQI members being captured or killed.[107]
Between July and October 2007, al-Qaeda in Iraq was reported to have lost its secure military bases in Al Anbar province and the Baghdad area.[108] During 2008, a series of US and Iraqi offensives managed to drive out AQI-aligned insurgents from their former safe havens, such as the Diyala and Al Anbar governorates, to the area of the northern city of Mosul.[109]
By 2008, the ISI was describing itself as being in a state of “extraordinary crisis”.[110] Its violent attempts to govern territory led to a backlash from Sunni Arab Iraqis and other insurgent groups and a temporary decline in the group, which was attributable to a number of factors,[111] notably the Anbar Awakening.
In late 2009, the commander of US forces in Iraq, General Ray Odierno, stated that the ISI “has transformed significantly in the last two years. What once was dominated by foreign individuals has now become more and more dominated by Iraqi citizens”.[112] On 18 April 2010, the ISI’s two top leaders, Abu Ayyub al-Masri and Abu Omar al-Baghdadi, were killed in a joint US-Iraqi raid near Tikrit.[113] In a press conference in June 2010, General Odierno reported that 80% of the ISI’s top 42 leaders, including recruiters and financiers, had been killed or captured, with only eight remaining at large. He said that they had been cut off from al-Qaeda’s leadership in Pakistan.[114][115][116]
On 16 May 2010, Abu Bakr al-Baghdadi was appointed the new leader of the Islamic State of Iraq.[117][118] Al-Baghdadi replenished the group's leadership, many of whom had been killed or captured, by appointing former Ba’athist military and intelligence officers who had served during Saddam Hussein's rule.[119][120] These men, nearly all of whom had spent time imprisoned by the US military at Camp Bucca, came to make up about one third of Baghdadi’s top 25 commanders, including Abu Abdulrahman al-Bilawi, Abu Ayman al-Iraqi, and Abu Muslim al-Turkmani. One of them, a former colonel called Samir al-Khlifawi, also known as Haji Bakr, became the overall military commander in charge of overseeing the group's operations.[121][122] Al-Khlifawi was instrumental in doing the ground work that led to the growth of ISIL.[123][124]
In July 2012, al-Baghdadi released an audio statement online announcing that the group was returning to former strongholds from which US troops and the Sons of Iraq had driven them in 2007 and 2008.[125] He also declared the start of a new offensive in Iraq called Breaking the Walls, aimed at freeing members of the group held in Iraqi prisons.[125] Violence in Iraq had begun to escalate in June 2012, primarily with AQI’s car bomb attacks, and by July 2013, monthly fatalities exceeded 1,000 for the first time since April 2008.[126]