Limiting police power is a tough political goal. Right now police can literally shoot you dozens of times with their personal assault rifle that has "fuck you" engraved on it while you are lying on the ground with your hands on your head begging for your life, then get caught planting a gun on your body and face zero repercussions. And in discussions about this a huge number of people support the cops - "you never know, he could have been armed, we can't ever suggest a cop behaved badly because that would make other cops less willing to kill at a moment's notice" are real arguments people put forward. If you want to stop them from being able to pull people over for no reason so easily that sounds great but that is a HUGE undertaking.
1. I know enough to stop answering questions
2. I have a lawyer I can call and ask to get involved
Both 1 and 2 are, however, not choices for the vast majority of people.
Cameras in your vehicle and handing your attorney's business card with your driver's license are good deterrents that I highly recommend. Everyone has a plan until they get punched in the mouth.
They may even, as you say above, move to detain you and bring you in. Again, actually having a lawyer here is what's important, and again, usually not something most people can afford.
My understanding of the Palantir law enforcement use case is that, for example, a gang unit police cruiser going down the street in a bad neighborhood can pick up data from its license plate readers, and be automatically alerted if any passing vehicles are associated with certain parameters.
The plain-vanilla tech solution for law enforcement would be something along the lines of: throw a notification if any of the passing vehicles is registered to someone with outstanding warrants.
Palantir takes it a step further and throws a notification if, say, the vehicle is registered to a known associate of a gang member who is wanted for questioning. This network understanding has to be built on the backend, both by integrating existing data sources and by doing work directly on the Palantir system.
Eventually the cops might start following the vehicle, and pull the driver over for a nominal traffic infraction. At that point, the officer is going to use their Palantir app within their department-issued mobile phone to assist in the discussion with the driver -- for example, if the driver coughs up any names, the officer can type them in to see what comes up in the system.
I'd think that Palantir's defense of this would be something along the lines of, "everyone in this story previously had the right to see every bit of information the system provided, we just made it more efficient". The counterargument would be something along the lines of, the state having such detailed understanding of its citizens' personal lives is ipso facto tyranny.