James Boasberg, the chief judge of the District Court in Washington, has been criticized by the president for ruling against his deportation efforts.