Rather than making this racists/sexists, why not simply address the size of the businesses?
After all, a white man's small business is no different than a minority's or white woman's small business.
And once they are above a certain size, ANY business can wait, or sue, if need be.

How about requiring the General Contractor to pay the smallest ones first, rather than the opposite way.