the measure was valid where the territory controlled the free men