According to current law, it is illegal for them to work here and they should be arrested and deported. That is the law. If it is not enforced, then who should be held accountable?
If the general contractor was also held accountable, they would have some incentive to not hire subs who hire illegals.