As Trump said, by invading Iraq, we did Iran a big favor. We turned their biggest enemy into an allied country. The surge didn’t change that. It still left Iraq governed by Shiites who are allied with Iran
It meant splitting Iraq and causing civil war.
Sunni Iraqi's weren't going to ally with Iran and the Shia majority in the south had some scores to settle.