The behaviour of a racist yob who stopped drivers during the summer riots to check if they were “white” or “English” was “disgraceful”, a judge said.