Ohio city rewrites abortion ban, advocacy groups end lawsuit