You don't really even need legislation. Most produce you buy from the supermarket are from F1 Hybrids [1] which if you plant the seeds are highly variant and lack vigor (i'm not sure of the % of tomatoes in supermarkets are F1s specifically though). This is one natural way things like this have not come to reality and one way most seed producers (especially ones focused on commercial use) use to protect their varieties.