Judgment upholds right to work