Jens Stoltenberg fixade ihop uppgörelsen genom att lova att Nato ska stärka kampen mot terrorism.