Personal anecdote: riding as passenger in friend's vehicle, LEO pulls over, friend says 'oh, not again.' LEO advises '... license plate lamp out ...' Friend says, 'no it isn't,' exits vehicle, examines lamp -- in good working order. LEO says, 'must have made a mistake'. Friend says, 'no, I have a name similar to someone with an active warrant', cop says 'uh, huh'. Runs license. Free to go.
Lawful stop? No. Remedy? No.
The core issue is that the judiciary's (and your) presumption of reliable and trustworthy law enforcement behavior is not valid. This is a LEO 'company culture' problem which has always existed (formerly a racial problem, but now everyone's problem now that we're not doing that any more).
I'm not sure what the answer is, other than people need to learn what has happened in the ghetto for the last 200 years, then accept that they're next.