High court rules for Connecticut company in trademark case