Jens Stoltenberg, the Nato secretary general, has said that Ukraine is getting “closer and closer” to membership.