eBay has agreed to pay a $3m (£2.36m) fine to resolve harassment charges against bloggers critical of the company.