San Diego took a key step Monday toward preventing thousands of rent-restricted apartments from being torn down by becoming the first local city to approve a preservation law for subsidized housing.