It is illegal. Did these jerks not see “Green Card?
I thought so.
Off the top of my head, it’s not illegal unless there is intent to defraud. And, if I correctly recall, the temp visa holder must still return to his or her home country (if the visa expires) while the application is being processed.