Two judges have ordered the reinstatement of thousands of dismissed probationary employees from the federal agencies.