38 U.S.C. § 5501
Commitment actions
The Secretary may incur necessary court costs and other expenses incident to proceedings for the commitment of mentally incompetent veterans to a Department hospital or domiciliary when necessary for treatment or domiciliary purposes.