The judge ordered the Trump administration to “immediately take every step necessary” to follow his order temporarily halting plans for a freeze of federal funds.