On application for a writ of habeas corpus to inquire into the detention of any person pursuant to a judgment of a court of the United States, the respondent shall promptly file with the court certified copies of the indictment, plea of petitioner and the judgment, or such of them as may be material to the questions raised, if the petitioner fails to attach them to his petition, and same shall be attached to the return to the writ, or to the answer to the order to show cause.