United States in both federal and state courts. The primary duties include defending the interests of the United States in civil immigration cases, including habeas relief... under 28 . § 2241 and cases under the Administrative Procedures Act (APA)....