"Terri's Law" is Bad Law
That said. How is this not a bill of attainder?
Except for a manifest act of God, nothing good comes from using evil tools. E.g. the delivery of Isreal from famine through the enslavement of Joeseph.
Nothing good will come of allowing bills of attainders to be passed as US law.