Palantir is quickly becoming an important pillar supporting the U.S. military's focus on artificial intelligence (AI).