Court affirms convictions in trademark case