Court upholds two-year prison sentence for journalist