The keeper of each jail shall be subject to the same penalties for any neglect or failure of duty in keeping prisoners who are committed to his or her charge under the authority of the United States as he or she would be subject to under the laws of this state for the like neglect or failure in the case of prisoners committed under the authority of the said laws; provided, the United States pays or causes to be paid to the jailer such fees as the jailer would be entitled to for like service rendered by virtue of the existing laws of this state during the time such prisoners shall be therein confined; and moreover, supports such of the prisoners as shall be committed for offenses.