The judge called the rapper's actions "absolutely unacceptable" after he nodded and made faces at the jury.