EJ started ranting about Nicole not really being remorseful, and then Sami joined in...the judge was trying very hard to shut them both up without citing them in contempt (Judge Judy would have had both removed from the courtroom, lol) however, and he was only pointing out that pots were calling kettle black.
Sami knows full well the extent of most of Elvis's sins...and needed to be taken down a peg herself. She DID have a custody problem with both Lucas AND EJ, tho the latter was not her fault.
We have complained a lot here about EJ never paying for his crimes.....and I think the show was acknowledging that fact about EJ. And it was true that Sami was not entirely blameless in this fiasco....however good and sound her reasons were. Court deals in facts.