“The rulers of a state ought doubtless to understand God’s will, and to encourage the inculcation of just principles, and to restrain blasphemy against God and trespass against men.”