A city or town is prohibited from accepting federal monies for a construction project if as a condition of accepting the federal monies the city or town is required to give a preference to union labor.