The secretary shall not enter into any contract for the care or commitment of any prisoner of the federal government, any federally recognized tribe, or any other state unless there is vacant space and unused facilities in state correctional facilities.