A three-judge panel voted unanimously to allow troops to stay in the capital for the duration of the appeal, citing the city’s unique legal status.