The church simply buckled to the opinion of the majority concerning scientific matters. Sadly they let the philosophers of the day use them for the philosophers own ends.
The Jesuit priests were willing to look through the telescope and agreed with Galileo. Even Galileo in a letter to one of his friends (Kepler) complained not about the church, but about his fellow philosophers and astronomers.
"My dear Kepler, I wish that we might laugh at the remarkable stupidity of the common herd. What do you have to say about the principal philosophers of this academy who are filled with the stubbornness of an asp and do not want to look at either the planets, the moon or the telescope, even though I have freely and deliberately offered them the opportunity a thousand times? Truly, just as the asp stops its ears, so do these philosophers shut their eyes to the light of truth.
[9]"
https://en.wikipedia.org/wiki/Galileo_affair
"
Jesuit astronomers, experts both in Church teachings, science, and in natural philosophy, were at first skeptical and hostile to the new ideas; however, within a year or two the availability of good telescopes enabled them to repeat the observations. In 1611, Galileo visited the Collegium Romanum in Rome, where the Jesuit astronomers by that time had repeated his observations. Christoph Grienberger, one of the Jesuit scholars on the faculty, sympathized with Galileo’s theories, but was asked to defend the Aristotelian viewpoint by Claudio Acquaviva, the Father General of the Jesuits. Not all of Galileo's claims were completely accepted: Christopher Clavius, the most distinguished astronomer of his age, never was reconciled to the idea of mountains on the Moon, and outside the collegium many still disputed the reality of the observations. In a letter to Kepler of August 1610,
[7] Galileo complained that some of the philosophers who opposed his discoveries had refused even to look through a telescope."
We agree, sadly the church let itself be swayed by politics and got involved in a matter they should never have been involved in. The church should let it's opinions be known, then let the individuals within the church take matters from there. In an ideal world this would work fine. Sadly again this is not an ideal world and other factions have their lobbying power paying for votes. The church actually has no choice but to get involved, else the individual voices would be drowned in the sea of lobbying power wielded by the corrupt....