City adopts new sex offender restrictions