A ruling by U.S. District Judge William Alsup stands in the way of the Trump administration's plan to significantly shrink the federal workforce.