Ed Sheeran wins copyright case over 'Shape Of You' hit