British pop star Ed Sheeran wins 'Thinking Out Loud' copyright case