The U.S. Department of Homeland Security must restore the student visa status of a doctoral student from China and refrain from trying to deport him, a Washington federal judge has ordered, saying the agency actions based on a DUI arrest appear unlawful and likely to cause irreparable harm.