The court ruling exposes Harry and others, including rock star Elton John and model Elizabeth Hurley, to even greater costs after a judge dismissed their long-running claim against the Daily Mail’s publisher.