IIRC they can, but only if the other company is also paying some proportion of the costs relative to how many of their employees are present, or something like that. It's been a little while but the rules are in some training presentation or other.
And the ruling makes it
clear that it’s based on the actual on the ground reality, which is why vendors get pulled in the same way.
If the main company is the one giving the vendors employees their direction, managing them, setting hours explicitly, they get included in all hands, etc. then the main company is also on the hook for being their actual employer as far as benefits, taxes, etc. go.
So there needs to be a clear delineation at all times, or bad things happen to the primary company regarding costs.
I get why 1099s can’t but what’s the deal with the other, now more common situation?