As
@bilby noted, the intellectual infrastructure for the broad enterprise we call science was laid by philosophy.
Now you might say that science has become completely separate from philosophy, but that is not true. As the aforementioned Norman Swartz (and more notably Einstein) said, bare data is not enough. You have to THINK ABOUT that data, and CONCEPTUALIZE and CONTEXTUALIZE it. Doing that, and how to do it, is philosophy,
Uranus isn’t fitting Newton’s paradigm. Shall we really ditch such a successful theory?
No. We find Neptune.
Mercury isn’t fitting Newton’s paradigm. Shall we really ditch such a successful theory?
Yes, we don’t find Vulcan. We find gravitational lensing.
But we don’t WHOLLY ditch Newton. We realize it works to a limit. It’s still great for getting us to Mars.
And so on.
Duhem-Quine. If Newton had known about this PHILOSOPHICAL CONCEPT, he might have questioned his assumptions about absolute space separate from absolute time and his assumption about Euclidean geometry. Recall, Newton PHILOSOPHIZED about gravity in a letter, wondering what such a “force” could be. He already had the PHILOSOPHICAL intimation that maybe it was not strictly a force at all.
Philosophy and science are always having metaphorical and metaphysical intercourse. I suppose physical intercourse would be more fun.
And none of this has anything to do with religion.