Another provision that limits the government's ability to apply laws retroactively is the Ex Post Facto Clause of Article I, Section 9. This clause prohibits the government from passing any ex post facto law, which is a law that retroactively makes an action illegal that was not illegal when it was committed. However, the Ex Post Facto Clause only applies to criminal laws, and it does not apply to civil laws, such as tax laws or regulatory laws.
Finally, the Contracts Clause of Article I, Section 10 prohibits the government from passing any law that impairs the obligation of contracts. This means that the government cannot retroactively change the terms of a contract, such as by reducing the amount of money that one party is obligated to pay.