The government says the measure, which must be signed into law by the president, will protect minors. Critics worry it will threaten free speech and privacy online.
A small group in the House of Lords proposed hundreds of amendments that helped stymie a bill that was meant to legalize medically assisted death for the terminally ill.