Spain's leftist government has reversed course and extended the operating life of the country's largest nuclear plant to reduce exposure to turbulent energy markets, the state gazette showed on Friday.