H1-B applications must have a Labor Condition Application which requires a prevailing wage assessment and that hiring a foreign worker won't adversely affect US workers.
It is true that the LCA (and PERM!) processes are have grave flaws that leave them open to abuse.