No argument on either side being out of line, but the Church took action because Galileo (a practicing Catholic) was teaching something that was in disagreement with what the Church had been teaching.
It started with an investigation, and ended with Galileo being placed under house arrest for “holding as true the false doctrine taught by some that the sun is the center of the world and motionless and the earth moves even with diurnal motion; for having disciples to whom you taught the same doctrine; for being in correspondence with some German mathematicians about it; for having published some letters entitiled On Sunspots, in which you explained the same doctrine as true; for interpreting Holy Scripture according to your own meaning in response to objections based on Scripture which were sometimes made to you; and whereas later we received a copy of an essay in the form of a letter, which was said to have been written by you to a former disciple of yours and which in accordance with Copernicus’s position contains various propositions against the authority and true meaning of Holy Scripture”
Just saying…
That’s the beauty of our Church, though. We grow and change just as our knowledge grows and changes. Unless someone finds the body of Jesus Christ in a tomb somewhere, we’re pretty safe in our beliefs.