Peter Berger in The American Interest:
In phase one, lasting up to the early 1980s, he [Jurgen Habermas] still viewed religion as an “alienating reality”, a tool of domination for the powerful. In good Marxist tradition, he thought that religion would eventually disappear, as modern society comes to be based on “communicative rationality” and no longer needs the old irrational illusions. In phase two, roughly 1985-2000, this anti-religious animus is muted. Religion now is seen as unlikely to disappear, because many people (though presumably not Habermas) continue to need its consolations. The public sphere, however, must be exclusively dominated by rationality. Religion must be relegated to private life. One could say that in this phase, at least in the matter of religion, Habermas graduated from Marxism to the French ideal of laicite—the public life of the republic kept antiseptically clean of religious contamination.
Phase three is more interesting. As of the late 1990s Habermas’ view of religion is more benign. Religion is now seen as having a useful public function, quite apart from its private consolations. The “colonization” of society by “turbo-capitalism” (nice term—I don’t know if Habermas coined it) has created a cultural crisis and has undermined the solidarity without which democratic rationality cannot function. We are now moving into a “post-secular society”, which can make good use of the “moral intuition” that religion still supplies. Following in the footsteps of Ernst Bloch and other neo-Marxist philo-Godders, Habermas also credits Biblical religion, Judaism and Christianity, for having driven out magical thinking (here there is an echo of Max Weber’s idea of “ the disenchantment of the world”), and for having laid the foundations of individual autonomy and rights.