Amazon notches partial win over Apple in trademark lawsuit