A New York state Supreme Court justice on Tuesday dismissed a fast-food trade group’s challenge to a 2017 New York City law targeting unfair scheduling practices by employers.

The ruling, by Justice Arthur Engoron of New York’s 1st Judicial District, ruled that the city’s Fair Workweek Law was not preempted by state law regulating employees’ work hours, schedules and minimum wage and premium pay compensation.