Spirituality is personal, but religion is all about power. Religious organizations provide the perfect habitat for psychopaths to thrive in.
The irony then is that in the case of the Roman Empire's abandoning of science in around the 2nd century and the Muslim abandoning of science in the 11th it was spiritualism and not religion at the core. Religions certainly have their dogmas but they often end up abusing the science or making unacceptable claims that can be scientifically rebuffed, they butt heads but religion doesn't really fully undermine science. However with regard to the dark ages it was spiritualism and the associated abandoning of scientific virtues that lead to it in the West. And the embracing of Sufi Islam and the spiritualism associated there which lead to the abandoning Baghdad as the scientific capital of the world.
Religions concern themselves with power, and though they may be commiserate with the evil galactic empire of Star Wars, the Empire still built death stars and allowed for interesting technological advances. Religion is certainly no friend to science, but science has only ever been killed by spiritualism. I fear the people who say "Science doesn't have all the answers" and "you can't really know anything" far more than those who claim that the universe was created by a middle eastern war god two thousand years after the Assyrians first brewed beer.