Aren't retroactive laws a thing?
For civil matters, yes, with a bunch of asterisks: https://www.law.cornell.edu/constitution-conan/article-1/sec...
Would action of Congress mean any such criminal convictions stand? If yes, would that be a violation of the Constitution of the United States?