Connery wins battle over £2.8m loan to friend