US President Barack Obama touts gains in the campaign against ISIL but cautions that the group can still direct and inspire attacks.