If you are referring to the Glassroth decision, no such written statute was cited, only other earlier court rulings.
So I'll ask you again, what specific written law compels a judge or a teacher to forfeit their own personal rights of religious expression when they enter certain government property?