Palantir Technologies Inc. saw its shares surge in after-hours trading on Monday after the data analytics company reported second-quarter results that exceeded Wall.