Judge said government HR agency ‘does not have any authority whatsoever’ to carry out mass firings