Suppose $\Gamma$ is an infinite set of formulas in FOL. It is given that for a structure, $M$: If $\Gamma$ is satisfiable in $M$ then $\varphi$ is valid in $M$.
Why is it true that there's some finite $\Gamma ' \subset \Gamma$, such that $\Gamma ' \vDash \varphi$?
It reminds the compactness theorem in a way, but it's not quite the same.
It is indeed a consequence of compactness. HINT: If $\Gamma\models\varphi$, then $\Gamma\cup\{\neg\varphi\}$ is unsatisfiable. What does the contrapositive of the Compactness Theorem tell you about a theory which is unsatisfiable?