A Swiss court has upheld the 2019 conviction of a former UBS banker for selling information about wealthy German tax evaders to German authorities.