Shadow Justice Secretary Robert Jenrick has vowed to take legal action after the Sentencing Council told judges to consider an offender's ethnicity when they hand down punishments.