Ruling blocks an earlier order that had frozen reductions in federal staffing while the legal challenge was being pursued