How this works: defense counsel files a motion claiming a free-speech exception for D's actions. Judge looks at vandalism statute, finds that it doesn't conflict with First Amendment (and i should note here in passing that the First Amendment right is not unlimited; if you think it is, please give me your address so I can spray graffiti on your house). Now that the judge has issued his ruling on the law, he's disposed of the question and Defense counsel is forbidden to bring it up again.
In criminal trials, the judge makes decisions about what are matters of law. The jury makes decisions about matters of fact, because the jury members are typically not trained in law, whereas judges are. If you lose a case and appeal, then in the appeal court you must make your argument to the appelate judges on points of law - there is no jury in an appeal court. So the appellant argues that in a case like this, the trial judge misread the law. On the other hand, you can't bring up issues of fact at appeal, absent new evidence; if the judge conducted the trial properly but a jury rendered a verdict you don't like, too bad - there are some exceptions to this, but they're highly unusual.
Now, I don't know that I agree with the judge's decision in this case, because I'm not sure that an impermanent thing like a chalk writing ought to count as vandalism (although I haven't researched this or read the judge's decision onthat). But even though I may disagree with the judge's conclusion on law, the fact is that he's made his decision and now he wants to get on with the trial. The proper place to dispute that decision is in the court of appeals. defense counsel knows this perfectly well and probably has the appeal paperwork already written and ready to file, but it's easier to put on his shocked face for the public and hope that it raises awareness of his client's case.
That being said, I don't even know that I'd consider writing with washable chalk to be vandalism. Maybe "littering" or something, considering how easy it is to wash off. Certainly nothing that should warrant any jail time (unless you're talking about a habitual repeat offender or something).
Why not? The court doesn't have to agree that your claim is valid. To prohibit you from even making that claim seems preposterous.
Arguments over what the law means or what's constitutional take place in front of judges, not juries. That's why ajuries are sometimes asked to leave the courtroom temporarily in the middle of a trial, or the judge orders attorneys into chambers - one side objects to something the other is doing as a matter of law, and the argument takes place out of hearing of the jury, because there jury is not there to decide the legal question, only the factual one.