Any funds received by the Department from any insurance company by reason of the loss of school property insured in such company shall be paid to the Treasurer of the Department and by the Treasurer kept in a special fund. The special fund shall be used by the Department of Education to pay as far as possible or necessary for the repair or rebuilding of any building in connection with the loss sustained. Any moneys remaining in the special fund after carrying out this section shall be deposited in the General Fund of the State.