A federal judge has ruled that the Trump administration's recent wave of probationary government employee firings was likely illegal.