Apple and Samsung have finally settled one of the tech industry’s longest running battles after seven years.