Which state was the first formed out of federally controlled territory