New city ordinance restricts sex offenders