I'd guess you'd have to start by figuring out if the role you applied for went to a H1B applicant, and then hire a lawyer to see if a lawsuit would be viable.
I wonder if you could make a business out of helping qualified US residents apply to these fake job postings and suing the companies when they get turned down..