How long did it take the for the thirteenth amendment to be ratified by state legislatures after it was passed by Congress