An opposition politician has a reduced sentence but is vowing to appeal further after a court upheld her conviction for defaming Thailand's monarchy.