The court decided that a tech firm in eastern China had illegally fired one of its workers after he refused to take a demotion when his job was automated by AI