Led Zeppelin may have won the copyright war over their creation of Stairway To Heaven, but they lost its battle to recoup nearly 800,000 dollars (£615,000) in defence fees.
Judge Gary Klausner ruled that the band's songwriters, record label and associated companies were not entitled to legal fees and other costs because the copyright lawsuit against them was not frivolous.
A Los Angeles federal jury found in June that guitarist Jimmy Page and singer Robert Plant did not lift the introduction of Stairway from an obscure instrumental written by the late Randy Wolfe, founder of the band Spirit.
The trust for Wolfe, better known as Randy California, claimed Page and Plant were familiar with his work and stole a riff from the short tune Taurus that repeats throughout the first two minutes of their 1971 classic rock anthem.
Wolfe's trust had been seeking credit for the song and millions of dollars in damages. But jurors found the tunes were not similar enough for Led Zeppelin to have violated the 1968 copyright protection of Taurus.
Lawyers for Led Zeppelin sought legal and other fees totaling 793,000 dollars after insurance companies rejected covering such an old claim.
They argued the lawsuit was frivolous, it was intended to shake down the rock stars for money, and that awarding defence costs would deter future meritless copyright claims.
But Judge Klausner rejected those arguments, saying he had found the lawsuit had enough merit to go to trial and there was no evidence the plaintiff "harboured nefarious motives".
While Led Zeppelin demonstrated a need for compensation after winning and showed that the plaintiff's lawyer behaved badly, Judge Klausner said it was at his discretion whether to award fees. He said the scales tilted more in favour of Wolfe's trustee.
The judge, however, had strong words for plaintiff's lawyer Francis Malofiy, who is currently serving a three-month suspension for serious misconduct in a copyright case over Usher's Bad Girl. A Philadelphia appeals court recently upheld the sanction for ethics violations in that case.
In the Led Zeppelin case, Judge Klausner reprimanded Malofiy for some of his antics and frequently blocked his questions because of objections by Led Zeppelin lawyers.
"Throughout the course of litigation, plaintiff's counsel demonstrated a tenuous grasp of legal ethics and a rudimentary understanding of courtroom decorum," he wrote.
Malofiy has appealed against the jury's verdict.