Iraq's extremists are formidable, but they cannot undo its history