A bill also outlawed the spread of material that encourages people not to have children