Levi Strauss & Co has won a trademark dispute over a piece of red fabric stitched onto the seam of the back pocket of its jeans.