A federal judge on Friday halted the Trump administration’s attempt to overhaul a major federal homelessness program.