Australian designer Katie Perry has won a trademark case against US pop star Katy Perry after a 16-year-long legal battle.