While the terrorist group is weakened compared with a decade ago, it now wields propaganda as its most potent tool to inspire deadly attacks.