When Justice Clarence Thomas wrote the Bruen decision, he explicitly said that some places truly were sensitive enough to warrant preventing guns from being taken inside. Courthouses were one of the exceptions he named, and while I disagree about the usefulness of such bans, the ruling is the ruling.