grandfather clause
noun [ C ]
LAW US ukus(also grandfather provision); (also grandfather rights [ plural ])a part of a new law or rule that allows someone to continue to do or to have something that a new law or rule makes illegal:
The grandfather clause applies only until offenders voluntarily move or sell their homes.
The older buildings are exempt from those rules under a grandfather clause.