"Es wurden neun Jahre."
"es" is really just a dummy pronoun. The actual subject is "neun Jahre". You could place it at the beginning of the sentence without changing its meaning.
Neun Jahre wurden es.
Regarding subject-verb agreement, have a look at this. http://goo.gl/79x1w (see "es = formal subject with sein")