SAN JOSE, Calif.— Apple Inc. won a small victory in its latest patent dispute with Samsung Electronics Co., but largely failed in its attempt to slow competitors to its landmark iPhone.

A federal-court jury ruled Friday that some Samsung devices infringed on two Apple software patents, but didn't infringe on two others; the judge had earlier ruled that Samsung infringed on a fifth patent.

The jury ordered Samsung to pay Apple $119.6 million in damages, far short of the $2.2 billion Apple had been seeking, and less than the $930 million Apple was awarded in an earlier trial in the same courtroom.

The same jury ruled Friday that Apple infringed on one Samsung patent and awarded Samsung $158,400.

The eight-member jury deliberated for three days, following four weeks of testimony.