A South Korean court has ordered Japan to compensate a group of women who were forced to work in wartime brothels.