The more general problem is: “how do you pass a law that benefits society but is a detriment to its elected representatives?” It’s a meta question too, because whatever mechanisms we come up with would be, by extension, beneficial to society and detrimental to politicians.