Appeals court rules against Amazon in dispute over product search results