The nonbinding ruling is expected to be hailed as a victory by workers' groups and influence global labour relations.