Let $(X, \mathcal{T})$ be a non compact topological space, $\infty \notin X$. We define
$$X^* := X \cup \{\infty\}$$
and $$\mathcal{T}^* := \{U \subseteq X^*\mid U \cap X \in \mathcal{T} \land (\infty \in U \implies X \setminus U \mathrm{\ compact)}\}$$
I want to prove that $(X^*, \mathcal{T}^*)$ is a topological space, and I am stuck at showing that the set is closed under arbitrary unions (I checked the other axioms and they worked out).
Here's my attempt:
Let $\mathcal{U} \subseteq \mathcal{T}^*$. Then $(\bigcup \mathcal{U}) \cap X = \bigcup_{U \in \mathcal{U}}(\underbrace{U \cap X}_{\in \mathcal{T}}) \in \mathcal{T}$
and if $\infty \notin \bigcup \mathcal{U}$ we are done. If $\infty \in \bigcup \mathcal{U}$, there exists $U \in \mathcal{U}$ such that $\infty \in U$, and hence $X \setminus U$ is compact, and $X\setminus(\bigcup \mathcal{U}) = \bigcap_{U \in \mathcal{U}}(X \setminus U) \subseteq X\setminus U$. So, if I can show that $X \setminus\bigcup \mathcal{U}$ is closed in $(X,\mathcal{T})$, compactness follows, but I can't show this.
I also tried $X \setminus \bigcup\mathcal{U} = \bigcap_{U \in \mathcal{U}}(X \setminus U)$ but I can't conclude anything from this since the intersection of compact sets is not necessarily compact.