New guidance for judges to consider a criminal’s ethnicity before deciding their punishment could be overruled by a change in the law to stop “two-tier” justice, the Conservative leader has said.