Slightly different. The good judge saw fit to stick a monument to the 10 commandments into the rotunda of the courthouse. He could do this IF he allowed other parties to put up monuments of a similar nature. However, he refused to do so. It would have been just as illegal if he'd stuck a 5,300-pound granite monument to the Koran in the courthouse rotunda.
The Ten Commandments may still be displayed in public view (for example, on private property, or on a public thoroughfare by someone holding a sign up, or in a public park by someone holding a sign up).
Your proposal would outlaw these actions, too.