Prince Harry has claimed a major legal victory against Rupert Murdoch's UK tabloids.