The Labor Department issued a final rule Sunday that clarifies when a worker is employed by more than one company, an issue that affects franchise businesses such as McDonald's and firms that have outsourced services such as cleaning and maintenance.