Retrospective and Retroactive Legislation: Historical Foundations, Constitutional Challenges, and Judicial Trends