Existence of optimal stochastic controls and global solutions of forward-backward stochastic differential equations