I don't know if it's really fair to say that after 9/11 we were playing world police when we invaded Afghanistan. They were harboring Al Qaeda who had been carrying out smaller scale attacks on US assets for a while, culminating with 9/11. At that point you can't just ignore them and hope they stop; they'd been escalating violence for years.