Such portion of the sums appropriated pursuant to subsection (a) for any fiscal year as the Secretary may determine, but not in excess of $1,000,000 in the case of the fiscal year ending June 30, 1963, and $2,000,000 in the case of any fiscal year thereafter, shall be available for carrying out subsection (f). From the remainder of the sums so appropriated for any fiscal year, the Secretary shall make allotments to the States on the basis of (1) population, (2) relative need for trained public welfare personnel, particularly for personnel to provide self-support and self-care services, and (3) financial need.