Amazon violated online shopper protection law, judge rules ahead of Prime signup trial