A federal judge has paused a sweeping new plan from the Trump administration to halt categories of federal spending.