I would've said something like, "Aye, the Church almost excommunicated him, but placed him on house arrest for the rest of his life," but such is not the case. I'm currently taking astronomy, and my teacher recently spoke of the manner. In my own curiosity, as well as wanting to ensure that my information was correct, found this fascinating article about the history of the centuries-long debate:
https://www.ewtn.com/catholicism/library/galileo-affair-4083