From the article by Father Thomas G. Weinandy, OFM, Cap.
"Third, while couples in irregular marriages and same-sex couples can be blessed, what cannot be blessed, and so validated, is the sin in which they are engaged. It is impossible to bless an immoral act, and to attempt to do so is blasphemy, for one is asking the all-holy God to do something that is contrary to his nature – the sanctioning of sin."
You can access the entire article here...
https://www.thecatholicthing.org/2023/12/19/gods-blessings-and-magisterial-teaching/