A federal judge has said that the Trump administration can continue its mass firing spree of federal employees.