Foreign policy has given the Labour government a purpose, at last