Apple has persuaded a Californian court to throw out a lawsuit that accuses the technology company of wilfully infringing copyrights covering ethnically diverse emoji characters.