(Reuters) - A U.S. judge has ordered a new trial to determine how much Samsung Electronics Co 005930.KS should pay Apple Inc AAPL.O for copying the look of the iPhone.

FILE PHOTO: A Samsung logo and a logo of Apple are seen in this September 23, 2014 illustration photo. REUTERS/Dado Ruvic/File Photo

U.S. District Judge Lucy Koh in San Jose, California issued her order late on Sunday, 10 months after the U.S. Supreme Court set aside a $399 million award against Samsung, whose devices include the Galaxy.

The three Apple patents covered design elements of the iPhone such as its black rectangular front face, rounded corners, and colorful grid of icons for programs and apps.

Koh’s order is a setback for Apple, which called a retrial unnecessary and said the award should be confirmed. The Cupertino, California-based company did not immediately respond on Monday to requests for comment.

Silicon Valley has closely followed the 6-1/2-year-old case.

Companies such as Facebook Inc FB.O and Alphabet Inc's GOOGL.O Google have said an Apple win would encourage owners of design patents to sue for huge, unfair awards on products containing hundreds of features that are costly to develop.

The $399 million represented profit from Samsung’s sales of infringing smartphones, though the South Korean company has said it deserved reimbursement if it prevailed in the litigation.

It was part of a $548 million payment that Samsung made to Apple in December 2015.

The legal dispute concerned whether the “article of manufacture” for which Samsung owed damages included its entire smartphones, or only parts that infringed Apple patents.

Without deciding that question, Justice Sonia Sotomayor wrote for the Supreme Court last Dec. 6 that “the term ‘article of manufacture’ is broad enough to embrace both a product sold to a consumer and a component of that product.”

In Sunday’s order, Koh said the jury instructions at the original 2012 trial inaccurately stated the law on that issue.

She said Samsung may have been prejudiced if jurors were prevented from considering whether any infringement covered “something other than the entire phone.”

Apple contended that the jury instructions were “not erroneous,” and said it had proved that Samsung applied its patented designs to its “entire phones.”

Jurors initially awarded $1.05 billion to Apple, which was later reduced.

Samsung, in a statement, welcomed a new trial, calling it “a historic opportunity to determine how the U.S. Supreme Court’s guidance on design patent damages will be implemented.”

The case is Apple Inc v Samsung Electronics Co et al, U.S. District Court, Northern District of California, No. 11-01846.