A U.S. District Court judge has ruled that Alibaba.com was not liable for the sale of counterfeit products by a Chinese supplier using the B2B website, a decision that may help clarify the legal responsibilities of online marketplaces in fraud cases.