Existence of equilibria in repeated games with long-run payoffs