Every great scientific truth goes through three stages. First, people say it conflicts with the Bible. Next they say it had been discovered before. Lastly they say they always believed it.
-- Louis Agassiz (Swiss naturalist, 1807-1873)
I have a slightly different theory. I think that when religion is confronted by truth that conflicts with their most basic beliefs, it goes through the stages of grief: Denial, Anger, Bargaining, Depression, Acceptance.
First, it denies it. The Earth doesn't go around the Sun. Evolution didn't happen.
Second, it gets angry. We'll burn you if you say the Earth goes around the Sun. We'll fight if you try to teach evolution in our schools.
Third, it bargains. Maybe the Earth just looks like it goes around the Sun. Maybe "Intelligent Design" is what happened.
Fourth, religious people get upset that a key part of their worldview has been proven false. Many leave.
Fifth, religion accepts the truth as its own. Of course the Earth goes around the Sun. Obviously evolution happened -- doesn't the Bible say that God created the plants before the fish before the land animals before the people?