Court rules in favour of workers