Palantir Technologies has filed a federal lawsuit accusing two former employees of misusing company information to help build a competing artificial intelligence (AI) business.