A Supreme Court ruling made the posting in each classroom in a public school of Ten Commandments as unconstitutional Stone V. Graham.
It was called unconstitutional because it does not have any religious purpose. The court argued that it is a part of the curriculum. Furthermore, it's against the Establishment Clause.