The state department of welfare shall admit to the home children surrendered or otherwise placed in its custody in any manner authorized by law; and the children shall be kept, maintained and educated therein until they can be placed by legal authority in suitable homes elsewhere.