I took a look at 28 USC 2244 and it reads as follows. So I think you’re right, though I’m nervous that “judgment” is doing 100% of the lifting here, and this is mostly untested in that ordinarily deportations are under a statute under which habeas review is not available.