A federal judge in Texas has largely halted an Obama administration initiative that grants work permits and reprieves from deportation to undocumented immigrants brought to the United States as children — calling the program “unlawful” even as he allowed the more than 600,000 young people already in it to keep their protected status.