No money shall be paid to any agent or attorney by an officer of the United States under any such contract or agreement, other than the fees due him for services rendered thereunder; but the moneys due the tribe, Indian, or Indians, as the case may be, shall be paid by the United States, through its own officers or agents, to the party or parties entitled thereto; and no money or thing shall be paid to any person for services under such contract or agreement, until such person shall have first filed with the Commissioner of Indian Affairs a sworn statement, showing each particular act of service under the contract, giving date and fact in detail, and the Secretary of the Interior and Commissioner of Indian Affairs shall determine therefrom whether, in their judgment, such contract or agreement has been complied with or fulfilled; if so, the same may be paid, and, if not, it shall be paid in proportion to the services rendered under the contract.