Since morality derives from God, and it is from God that we get the basics of human morality, such as the prohibitions on murder, adultery, theft, and other things, in those cases where the majority of Christian denominations, and other religions, for instance, Judaism, Zoroastrianism and so on, a just system of laws, such as what we see in Ghana, in West Africa, and in certain other Christian lands such as Ethiopia, Georgia and Armenia, to name a few, and indeed what briefly existed in the United States for a period after racist legislation was overturned but before the moral degradation of the past three decades entered into full swing, is one derived from essentially religious principles.
Indeed even within the past three decades, I would note that Republican legislators and indeed even President George W. Bush, on many occasions very properly have cited Christian morality as the basis for legislation, and this is extremely proper. The atheist idea that religion has nothing to contribute to ethics or civil morality or to the law is a relatively novel idea, and those countries which have most fully embraced this concept, such as Albania during the regime of Enver Hoxha* have also been among the most tyrannical. And of course, Albania is merely the tip of the iceberg as far as unjust atheist regimes go. Indeed such regimes have always made travesties of justice, going back to Revolutionary France (which also offers a stark condemnation of Deist principles applied to government, and I would note that I am no fan of the policies of Thomas Jefferson, aside from the Louisiana Purchase, but even that resulted in some terrible human rights abuses of native Americans, so the fact that the US now benefits from it does not compensate for the harm it caused; I sincerely wish the Federalist Party had remained in power, for although John Adams was a Unitarian, he was still a nominal Christian whose beliefs reflected Christian morality.
It is only when the laws of a country are derived from certain particular perverse religions, for example, the extreme radical forms of Salafi Islam, and in opposition to them, radical Shi’a Islam, or in the case of Nazi Germany, Marcionism (or “Positive Christianity” as Goebbels tried to market it, Marcionism being a heresy that denies that Jesus Christ was the Son of the God of Abraham, and in which the Old Testament is rejected, and instead the God of Abraham and the Hebrews is regarded as a demiurge; many forms of Gnosticism also followed this pattern), combined with neo-Paganism as practiced in the rituals of Himmler’s SS, and irreligion on the part of Hitler himself, that religion can have a destructive influence. I have no doubt that if Scientology ruled a country, which is a laughable thought given their swift decline into irrelevance, the results would be along these lines. But the historic existence of bad religion does not mean that atheism is automatically the right approach, indeed, we can see that this is fallacious owing to the highly repressive nature of governments which have been officially atheist (which France is not, but France is at the moment dominated by a centre-left European nationalist government led by Emmanuel Macron, and such governments have not generally accomplished much, certainly not compared to the center-right approach of Charles de Gaulle or the socialist promotion of French national interests that was the approach of Francois Mitterrand.
*Hoxha was what I would call a devout Atheist, indeed one might call him an Atheist fundamentalist, for he sought to ban religion in Albania, unsuccessfully, but persecuted and executed a huge number of Catholic, Orthodox Christian, Sunni Muslim and Bektashi Sufi quasi-Islamic clergy.