The Australian Federal Court has ruled against Cadbury Schweppes in a long-running legal battle between the company and Australian confectioner Darrell Lea.