Palantir loses legal challenge against Swiss investigative magazine