A 15-year court battle has come to an end and Katie Perry has won.