Proof (decomposition of affine algebraic sets into irreducibles)

Suppose to the contrary $X$ is not a finite union of irreducible affine algebraic sets. Construct an infinite sequence $$X_0 = X \supsetneq X_1 \supsetneq X_2 \supsetneq \ldots \tag{*}$$ of affine algebraic sets which are not a finite union of irreducibles:

Given $X_i$, since $X_i$ itself cannot irreducible, write $X_i = X_{i+1} \cup X_{i+1}'$ where $X_{i+1}, X_{i+1}'$ are proper Zariski closed sets of $X_i$. Since $X_i$ is closed, $X_{i+1}$ and $X_{i+1}'$ are closed in $\mathbb{A}^n$, i.e. they are affine algebraic sets. As $X_i$ is not a finite union of irreducibles, neither is (at least) one of $X_{i+1}$ and $X_{i+1}'$, WLOG say $X_{i+1}$.

Applying $I$ to $(*)$, and noting the inclusion-reversing and injective properties of $I$, we obtain a properly ascending chain of ideals $$ \begin{align*} I(X_0) \subsetneq I(X_1) \subsetneq I(X_2) \subsetneq \ldots, \end{align*} $$ contradicting the Noetherianity of $k[x_1, \ldots, x_n]$.