A judge Trump appointed said he didn’t follow due process in the ban