Why on earth would a judge order someone not to show emotion when the verdict was read? What does he think people are? Robots? It doesn't sound like what he did necessarily qualified as an outburst. I agree, if the guy had thanked allah, it probably would have been given a pass.
Power trip.