A law that is built upon decades of rising hate and discrimination, this is just giving that a rubber stamp. It has been terrible for a while. Watch the Russian news, they speak about the community like vermin and pests.
Thats why you need to trace this back to 1991, where the justification for this started. The USSR was actually starting to liberalize laws regarding LGBT+ people and I think they would have followed the same timeline as China/Cuba in modern times if that never happened. Thats why the ongoing war is connected to this, because the tensions created with the collapse of the USSR have never been resolved.