The group that became ISIS wasn't the only group fighting the US occupation. (And the fact that a group has goals beyond resisting the occupation doesn't mean its not resisting the occupation; just like the fact that it had goals beyond opposing Saddam's regime doesn't mean that the same group wasn't opposed to Saddam's regime -- which had contained it far more effectively than the US occupation did.)