SAN JOSE, Calif. — A federal jury decided Thursday that Samsung must pay Apple $539 million in damages for illegally copying some of the iPhone's features to lure people into buying its competing products.

The verdict is the latest twist in a legal battle that began in 2011.

Previous rulings had already determined that Samsung infringed on some of Apple's patents, but the amount of damages owed has been hanging in legal limbo. The issue escalated to the U.S. Supreme Court, which determined in 2016 that a lower court needed to re-examine $399 million of the $548 million that an earlier ruling had said should be paid to Apple.

Apple had argued that it was owed more than $1 billion, while Samsung contended that the $399 million should be slashed to $28 million. The revised damages figure represents a victory for Apple, even though it isn't as much as the Cupertino company had sought.

"Today's decision flies in the face of a unanimous Supreme Court ruling in favor of Samsung on the scope of design patent damages," Samsung said in a statement. "We will consider all options to obtain an outcome that does not hinder creativity and fair competition for all companies and consumers."

An eight-member jury came up with the new amount following a one-week trial and four days of deliberation in U.S. District Court in San Jose.

Apple expressed gratitude to the jury for agreeing "that Samsung should pay for copying our products."

"This case has always been about more than money," a company statement said. "Apple ignited the smartphone revolution with iPhone and it is a fact that Samsung blatantly copied our design."