If a person were just busted or even wanted before the law changed, they would still be on the hook.
But a governor or president could declare amnesty for them.
Convicted persons would need a pardon.