I’m no expert but I’ve read (and believe) that it wasn’t so much the Catholic Church that was up in arms against Copernicus and Galileo, but the ruling scientific establishment of the day. It was the “consensus scientists” of yesteryear who pressured the Catholic Church (or appealed to the Church) to enforce the earth-centered scientific orthodoxy.
If I’m wrong about that, I’d be interesting in hearing otherwise.
Could be... either way the ‘deniers’ of that time AND the ‘deniers’ of our time are right...