This legislation has to do with the law for the future. How does that overturn a court order? Nobody will say that Michael Schiavo was not his wife's guardian up to the time the legislation was passed.
And some retroactive tax legislation is allowed, by the way. This law is not retroactive.