He did it, and he did it in such a way, to provoke an outcome where he can claim martyrdom status along with the Ten Commandments. It was a very clever political strategy, but I think it was incredibly cynical and an absolute betrayal of those who were striving to get a balance between government and religion.
He set that cause back, yet somehow comes out the hero. Go figure.