Palantir will lose lucrative ICE data-mining contract that helped agency with workplace raids, documents show