The judge had temporarily blocked the plan after residents sued, but she ultimately decided that the city’s argument for the move was reasonable.