Almost. The landlord is bound whether he likes it by the laws of the land and that applies whether or not they change. Same as happens to all regular people. Sometimes stuff happens. This is one of those times.Your example needs to have an added situation.
Say you are looking to rent a house and a landlord comes along asking you to rent from him, if you are bringing jobs to the neighborhood, which makes everything around it prosper. House values go up, you may even employ more people, etc.
You rent the house that you employ all these people in, because the landlord instead of the going rate of $ 1,500 a month offers it for $ 750. The landlord then gets taxed on the $ 750 of rental income.
You move in for $ 750. You pay the employees and the payroll taxes.
Years later the city tells the landlord: Hey, by renting for only $ 750, which is way under what the houses rent for in this neighborhood you are avoiding paying taxes on $ 1,500.
Pay up for the difference. Then the country joins and says the city did not have the right to offer the house under market value.
You rented the place knowing $ 750 was a good deal and had an agreement with the landlord.
So, why would I have to deal with the city now, when I legally rented the place, bringing jobs and did nothing wrong, but taking advantage of the landlords offer?
You may have an agreement that you have a smoking bar in a gambling club or a men only gym. If the law of the land changes and you have an agreement with your clients its quite possible that your agreement is nullified.