To use the prior example: They could create a criminal reform act which makes weed legal, but also (by total coincidence) makes child rape legal.
Nobody will vote for the pedophiles, so now they have successfully prevented weed legalization for at least 10 years, and they can use a different poison pill next time.
Before you say "well, bring it back without the child rape part", see my other comment in this thread about deciding whether two bills are the same.
That being said, I agree that it probably isn't the most practical approach. It feels too vague to have any teeth, and if we were to collectively spend political capital to implement something like that, we may as well be more direct and push to constitutionally enshrine digital bills of rights that nip all this nonsense in the bud for good. No more E2EE bans, VPN bans, mandatory backdoors, age verification laws, undermining of Section-230-style protections, or criminalization of online speech — throw it all out, and roadblock any such future attempts.