An appeals court found that a previous order barring the government's use of the Guard in the city would remain in place.