For most of the contrabands, full freedom did not come until the Thirteenth Amendment to the U.S. Constitution abolishing slavery was ratified in late 1865.
Because southern states had prohibited teaching slaves (and, later, free blacks), education of freedmen during and after the war was a major goal of freedmen and their allies.