Appeal court upholds oath to Queen in citizenship case