A nice start would be to recognize having "buttfucker 3000" in your name might simply be an acknowledgement of the unjust law and probably circumstances (found in traffic stop, likely questionable 4A grounds) (although the article states that he stated it was unintentional.) So the easiest thing would have been just to let it slide and continue on like it doesn't exist.
Judge could also instruct jurors on "jury nullification" or make the prosecutor's life hell in other ways if they bring about these cases.
Yes I think there is a moral duty to ignore an unjust law, even if it is illegal to do so.
Court isn't an MMO; you don't get to choose a pithy username. You use your legal name, and the judge is right to enforce that.