The secretary is authorized to enter into contracts with the proper officers or agencies of the United States, federally recognized tribes, and of other states and territories of the United States relative to the per diem rate to be paid the state of Washington for the conditions of the keep of each prisoner.