As I understand it ISIS isn't actually a single militant group, it's a collection of independent militant groups that all call themselves ISIS.
So the US doesn't need to fund every ISIS cell, in fact some of them it might legitimately fight, it just funds the ones that attack enemies.