Palantir Posts First Quarterly Profit Following New Contract Wins