Prince: the singer’s legacy has been thrown into court