Worker advocates and some Democratic officials praised the rule, saying it was necessary to ensure basic protections for workers.