I am also quibbling with your claim “it's impossible for law to work backwards.” (IANAL)
1) It is unconstitutional to prosecute an individual for a crime that was legal at time of perpetration.
2) However, the opposite — decriminalizing previously illegal behavior — can be retroactive.
3) Changing future interpretation of copyright, etc., isn’t the same as case #1. If I’m not mistaken, Congress has passed e.g. the Mickey Mouse copyright law and the DMCA, which both extended “protection” & duration of copyright on previously created works.