A UK court has ruled in favour of Goldman Sachs in a $1.2 billion dispute with Libya's $67 billion sovereign wealth fund.