New York’s pension funds, which have exposure to $900 million of Palantir Technologies Inc. stock, are questioning the software company over its business dealings with US Immigration and Customs Enforcement and the Department of Homeland Security.