The sale will end a tumultuous five-year relationship between Ackman and the world's largest music company.