A federal judge in Los Angeles handed a major victory to Katy Perry on Tuesday, overturning a jury's verdict that found the pop superstar and her collaborators copied her 2013 hit "Dark Horse" from a 2009 Christian rap song. U.S. District Judge Christina A. Snyder said in her decision that the disputed section of the rap song, "Joyful Noise" by rapper Marcus Gray was not distinctive enough to be protected by copyright as the jury found.

"It is undisputed in this case, even viewing the evidence in the light most favorable to plaintiffs, that the signature elements of the eight-note ostinato in 'Joyful Noise' is not a particularly unique or rare combination," Snyder wrote in her decision.

The plaintiffs plan to appeal.

"When the jurors returned a unanimous verdict of infringement, I cautioned my clients that we had only finished Round 11 of a 15-round match and that the next round would take place in the court of appeals," Gray's attorney Michael A. Kahn said in an email to the Associated Press, referencing the numerous pre-trial rulings in his client's favor. "We believe the jury was right and will do our best to restore their verdict on appeal."

Get Breaking News Delivered to Your Inbox

The jury in August had awarded Gray and his co-writers $2.78 million from Perry and her songwriting partners, Dr. Luke, Max Martin and Circuit. CBS Los Angeles reported that the jury ruled that 22.5 percent of the total profits earned by "Dark Horse" could be attributed to the musical passage stolen from "Joyful Noise."

Perry, who testified at trial and jokingly offered to perform the song live when the recording had technical difficulties, had been personally ordered to pay $550,000.

Gray, a native of St. Louis who went by the stage name Flame, first sued Perry in 2014, the year "Dark Horse" spent four weeks at No. 1 on Billboard's Hot 100.

Perry, who announced earlier this month that she is pregnant, testified that they had never before heard "Joyful Noise." Her co-writers testified the same.

The award had fallen far short of the $20 million the plaintiffs had sought, and is not a huge amount for stars of the caliber of Perry or the hitmaking producer Dr. Luke, but her attorney Christine Lepera called the verdict a "travesty of justice" that would have a chilling effect on creativity.

Lepera did not immediately respond to an email seeking comment on the overturned verdict.

The judgment comes a week after another federal court in California handed a similar victory to Led Zeppelin, ruling that a new trial was not called for in the legal fight over their 1971 classic "Stairway to Heaven," and that a jury's ruling in the band's favor should stand.