Where moneys are deposited in the state treasury under the provisions of this chapter, the court shall have power, in the event the right to the moneys are adjudged against the state, to order the return of the moneys to the party entitled, and the moneys shall be paid out of the treasury without any delay, and in exclusion of all other claims whatever.