The U.S. military will leave Iraq by the end of September following a 23-year presence that started with the 2003 invasion against Saddam Hussein and ended with much smaller operations against the Islamic State group