A judge's approval of the agreement, which is expected soon, will begin a process that city officials believe can be completed within five years.