You aren’t being inconvenienced in any way if the government eavesdrops on your phone calls or monitors your internet usage either. Does that make those okay too?
Those actions are illegal, running the plate wasn’t illegal.
That is unrelated to this case.