You’re right. But the mechanisms in place to accommodate societal change are statutory legislation (at both the federal and state levels) and the amendment process.
Laws, unless they’re specifically drafted to have one, do not have a sunset date. And it is simply not the role of courts to act as a de facto legislature to use (abuse) their authority to affect changes to the law In the stead of the processes we have in place to affect them.
You’ve mentioned timeframes. Would we tell the heirs of families who had works of art looted by the Nazis that they have no rightful claim to them…because they were stolen from their ancestors almost 100 years ago?
I wouldn’t think so. The passage of time, the fact these items have changed hands at least once since then, etc. These things are not valid arguments against returning the stolen goods to their rightful owners.
Anyway, you’re absolutely right that society changes. Our framers knew this full well. If they didn’t, they wouldn’t have created a federal legislature, the space for states to chart their own courses within limits, and two processes to amend the Constitution.