A federal judge in Rhode Island has formally blocked the Trump administration's spending freeze, saying in it is likely a violation of the Constitution.