A federal judge in Washington, D.C., on Tuesday ordered federal immigration officers to stop making arrests there without a warrant unless they could show that a suspect was a flight risk.