grandfather clause
noun
Definitions
A clause or section, especially in a law, granting exceptions for people or organisations who were affected by previous conditions.
Example: Many building codes include a grandfather clause exempting older buildings until some amount of remodeling occurs.