No right-wing or moderate American political leader has ever said Iraq attacked us on 9/11. The only people I have ever hear make that argument, are liberals who think that was the message from something they misconstrued from Bush. It is probably the reason the Bush Administration made the case for war on basis of WMD's instead of a connection to Islamic terror, because they feared just this sort of criticism. In retrospect, it is probably the single biggest mistake the Bush Administration made, not connecting Saddam to alQaeda, as our intelligence reports indicate.
Let's be clear, "Iraq" has never attacked the US, the people of Iraq are very cordial toward the people of the US, and always have been. The tyrant dictator who once ruled Iraq, Saddam Hussein, is a different matter. He certainly did wage attacks on the US and on US interests in the middle east. He was connected to the 1993 bombing of the World Trade Centers, and actually provided safe haven (and a pay check) to one of the bombers. Members of his regime, acting on his behalf, met with representatives of alQaeda on eight different occasions, and he sent his deputy prime minister to Afghanistan to meet personally with Osama Bin Laden. He made facilities available in Salman Pak, for the training of terrorists, including members of alQaeda. Three independent reports said that he did indeed have a WMD program, the evidence of facilities and equipment were there, although no stockpiles were ever found. As late as 1996, he had 80,000 liters of chemical weapons, which had not been accounted for, and remain unaccounted for... and we KNOW FOR CERTAIN these existed, because the UN verified and confirmed it.
So, you are absolutely right, Iraq didn't attack us on 9/11, but that was never in question.