In Alabama , Mr. Pryor initially defended Chief Justice Roy Moore of the State Supreme Court against a suit that challenged the constitutionality of erecting a monument to the Ten Commandments in a courthouse .