[guided]We want to show that every finite subset of $T$ has a model, so that Compactness applies.
**Finite subsets involve only finitely many new constants.** A finite $T' \subseteq T$ is a finite list of sentences, each either an element of $S$ or of the form $c_i \neq c_j$. Collecting, we may write
\begin{align*}
T' &= S' \cup \{c_{i_r} \neq c_{j_r} : r = 1, \dots, k\},
\end{align*}
with $S' \subseteq S$ finite and $i_r, j_r \in I$. Let
\begin{align*}
J &= \{i_1, j_1, i_2, j_2, \dots, i_k, j_k\} \subseteq I.
\end{align*}
Then $J$ is a **finite** subset of $I$ (of size at most $2k$), comprising exactly the indices of constants that appear in $T'$. Sentences of $T'$ never mention $c_i$ for $i \notin J$.
**Expand $A$ to interpret the fresh constants.** Because $A$ is infinite, $|A| \ge |J|$, so we may choose pairwise distinct elements
\begin{align*}
(a_i)_{i \in J} \subseteq A, \qquad a_i \neq a_{i'} \text{ for } i \neq i' \text{ in } J.
\end{align*}
Pick any element $a_0 \in A$ (e.g. $a_0 = a_{i_1}$). Define an $L^*$-structure $A'$ with underlying set $A$, same interpretations of $L$-symbols as $A$, and new constants interpreted by
\begin{align*}
c_i^{A'} &= \begin{cases} a_i & i \in J, \\ a_0 & i \in I \setminus J. \end{cases}
\end{align*}
The arbitrary choice for $i \notin J$ is harmless because $T'$ does not constrain those constants.
**Verify $A' \models T'$.**
1. *Old axioms*: each $p \in S' \subseteq S$ uses only $L$-symbols, so its truth value in $A'$ equals its truth value in $A$. Since $A \models S$, in particular $A \models p$, so $A' \models p$.
2. *New axioms*: for each $r$, $i_r \neq j_r$ and both $i_r, j_r \in J$, so $c_{i_r}^{A'} = a_{i_r}$ and $c_{j_r}^{A'} = a_{j_r}$. By pairwise distinctness of $(a_i)_{i \in J}$, $a_{i_r} \neq a_{j_r}$, hence $A' \models c_{i_r} \neq c_{j_r}$.
Thus $A' \models T'$.
**Why the hypothesis "$A$ infinite" is essential.** If $A$ were finite of cardinality $N$, then for $k$ such that $|J| > N$, we could not find $|J|$ pairwise distinct elements of $A$, and the construction breaks. Correspondingly, the Upward Löwenheim-Skolem Theorem fails for theories with no infinite model (e.g., "there are exactly three elements").[/guided]