It works, but court cases are public record. Good luck getting anyone to touch you with a ten foot pole afterwards, not like the candidate can prove why they weren't selected.
Lol in my state I can see every (unsealed) civil case with a simple online query. My landlords have pretty much all done it, I don't know if the background checks show it but it's an extra 15 seconds to hedge a 10k+ potential liability.