(4)Any sums ordered to be paid by the Secretary of State by way of debt, damages or costs in any such proceedings as are mentioned in this section and any costs or expenses incurred by him in or in connection with the prosecution or defence thereof shall be deemed to be sums required for the discharge of the functions of the Crown in its relations with Indian States, and any sum received by the Secretary of State by virtue of any such proceedings shall be paid or credited to the Federation.