Starbucks will pay $38.9 million to New York City after breaking fair scheduling laws more than 500,000 times since 2021.