All persons sentenced to prison by the authority of the United States or of any state or territory of the United States or federally recognized tribe may be received by the department and imprisoned in a state correctional institution as defined in RCW
72.65.010 in accordance with the sentence of the court by which they were tried. The prisoners so confined shall be subject in all respects to discipline and treatment as though committed under the laws of this state.