The decision will affect more than 300,000 workers.