Judge blocks Trump from using 18th-century wartime act for deportations