Jailed Libya group wins retrial