UK agrees to support Sweden and Finland if attacked