A US district judge rules Amazon violated consumer