A U.S. court dismissed a lawsuit against Amazon.com Inc on Friday that accused the company of antitrust violations for barring third-party sellers from offering better deals for their products elsewhere.