(a) Compliance with Court Order.—(1) Subject to paragraph (2), if a valid order of a Federal court (or military judge) so requires, an element of the Department of Defense that maintains a repository of DNA samples for the purpose of identification of human remains shall make available, for the purpose specified in subsection (b), such DNA samples on such terms and conditions as such court (or military judge) directs.
(2) A DNA sample with respect to an individual shall be provided under paragraph (1) in a manner that does not compromise the ability of the Department of Defense to maintain a sample with respect to that individual for the purpose of identification of human remains.
(b) Covered Purpose.—The purpose referred to in subsection (a) is the purpose of an investigation or prosecution of a felony, or any sexual offense, for which no other source of DNA information is reasonably available.
(c) Definition.—In this section, the term "DNA sample" has the meaning given such term in section 1565(c) of this title.