how long did it take for the thirteenth amendment to be ratified by state legislators after it was passed by congress