The Trump administration has expanded Palantir’s work with the government, spreading the company’s technology — which could easily merge data on Americans — throughout agencies.