<human>:  How did the judge rule in the recent lawsuit between Apple and Samsung Electronics?
<bot>: The judge ruled that Samsung had infringed on Apple’s patents. The ruling was not entirely favorable to Apple, but it did prevent Samsung from selling many of its products in the United States.