If Obama were to become vice-president, he would be able to serve two years as president. He would not have been elected a third time. (This ignores the question of his original ineligibility.)
He would be able to serve out the term.