The Question and Answer section for Tess of the D'Urbervilles is a great resource to ask questions, find answers, and discuss the novel.
Are you referring to A Tale of two Cities?
This would be considered a condemnation of society, rather than a condemnation of religion. The statement is filled with irony, as Tess received no justice. Hardy ends the novel with a brief explanation of Tess's fate that laments the ironic...
Sorry, your questions are much too involved for this short-answer forum.