If in the opinion of the Secretary of the Interior, the aforesaid educational facilities cannot be provided adequately and payment made therefor on a pro rata basis, as prescribed in section
40a of this title, the Secretary of the Interior, in his discretion, may enter into cooperative agreements with States or local agencies for