You know your employer is violating the law. Perhaps, he has benched you with no pay; is paying you less than the required wage; has you sending out resumes instead of writing a computer program.
So why do H-1B employees put up with this situation?
One of the main reasons an H-1B employee tolerates exploitation rather than filing a complaint against the employer is fear of being deported.
This fear is understandable, but protections do exist. Specifically, regulations prohibit the employer from threatening you and retaliating against you if you complain about his violations of the law. 20 CFR 655.801.