Spain emerged from a two-year recession in the third quarter, strengthening Prime Minister Mariano Rajoys efforts to repair the nations finances and reduce the 26 percent jobless rate.