This isn't something I'm clear on. Maybe someone here is a lawyer and can offer some insight.
Yes, he's a badass but under what rules can the judge completely disallow courtroom access for specific individuals doing representation work? I can see malfesience, disruption, or ethics being reasons - but being illprepared resulting in sanctions (? maybe, not sure of the right word, perhaps censure) against specific individuals seems like it might require a high standard, as choice of representation is a pretty solid privilege.
Like you said, a badass. Judges have awesome powers in their courtroom, but I'm not sure I've seen anything quite like this and I'm unsure of the rules surrounding it. I'm sure there are rules. Courts love their procedure. They've got rules for everything.