Effects of the mass ratio on the existence of retrograde satellites in the circular restricted problem. IV. Three-dimensional stability of plane periodic orbits.