This does not mean the mother must be in the US for the year immediately prior to the birth - it just means she must have lived in the US for at least one full year at some point prior to the birth. Since Ted's mother was raised in the US, she obviously met that requirement.
Tell that to the Obamabirthers.