U.S. Code § 6003. Court and grand jury proceedings
In the case of any individual who has been or may be called to testify or provide other information at any proceeding before or ancillary to a court of the United States or a grand jury of the United States, the United States district court for the judicial district in which the proceeding is or may be held shall issue, in accordance with subsection (b) of this section, upon the request of the United States attorney for such district, an order requiring such individual to give testimony or provide other information which he refuses to give or provide on the basis of his privilege against self-incrimination, such order to become effective as provided in section 6002 of this title.
(b) A United States attorney may, with the approval of the Attorney General, the Deputy Attorney General, the Associate Attorney General, or any designated Assistant Attorney General or Deputy Assistant Attorney General, request an order under subsection (a) of this section when in his judgment—
the testimony or other information from such individual may be necessary to the public interest; and
such individual has refused or is likely to refuse to testify or provide other information on the basis of his privilege against self-incrimination.