US city emerges from bankruptcy