A judge has ruled that the Trump administration's central human resources office acted illegally when it directed the mass firings of thousands of probationary workers