What happened with the situation? Did they declare him under arrest before hand because than they can unlock the car, they just can’t search it. If not they are totally in the wrong(legally, not the dumbass cop making stupid comments part. Just speaking from the legal perspective.)
It’s also the first search that comes up goes to a state trooper getting arrested for a DWI.