Second Vinny. I’m not a lawyer, but used to work on a unit for people found incompetent to stand trial, and a lot of our job was to stage Mock Trials so they could learn and demonstrate sufficient understanding of court proceedings to be found competent. We found Vinny to be uniquely valuable, both because of its accuracy and its structure, which is basically teaching a novice lawyer how to conduct a trial.
Perry is not so much inaccurate (he is, but not as much as often claimed) but in the TV show he rarely goes to trial. Most of what we see is a Preliminary Hearing, where judges have a lot of discretion to waive formal procedures, since there is no jury. So not a helpful teaching tool.
Law and Order could be useful, but you would probably need a knowledgeable attorney to pick and choose excerpts from several episodes to get useful examples of a whole trial.
Probably not appropriate for Middle School, but I like most of the court stuff on Goliath.