Aren't retroactive laws explicitly illegal?
Yes. Ex post facto.
Ex post facto laws are expressly forbidden by the United States Constitution in Article 1, Section 9, Clause 3 (with respect to federal laws) and Article 1, Section 10 (with respect to state laws).
(post is archived)