Advocates for workers’ rights welcomed a ruling from the Minnesota Supreme Court on Wednesday upholding a Minneapolis ordinance requiring sick pay.

The state’s high court ruled 5-2 that a city of Minneapolis ordinance governing employee sick and safe time does not pose an irreconcilable conflict with state law, and state law therefore does not preempt the local rule. The court also said the city’s law does not violate the extraterritoriality doctrine because the primary purpose and effect of the ordinance is to regulate sick and safe time for employees who work within the geographic limits of Minneapolis.