A federal judge granted a temporary restraining order against the Trump administration’s freeze on federal spending, causing confusion and chaos across the government.