In 2007, the television network Nickelodeon handpicked Caitlin Sanchez, then 12 years old, to voice the wildly popular cartoon character “Dora the Explorer.” But Sanchez’s stint playing a cheery preschooler wound up introducing her into a very adult world of litigation. The partnership soured three years later, and Sanchez’s parents sued the network, alleging that it forced her into an exploitative labor contract. The focus of the case soon shifted, however, to a dispute between the Sanchezes and their lawyer, John Balestriere of Balestriere Fariello, over allegations that Balestriere forced them into a quick settlement that was nearly as exploitative as the original contract.

U.S. District judge Thomas Griesa in Manhattan rejected those claims on Monday, approving Balestriere’s $193,000 contingency fee and future payments for his role in negotiating the $510,000 settlement in 2010. The ruling marks the third rejection of the plaintiffs efforts to undo the deal–a campaign that’s churned through three sets of lawyers. It also caps a two-year-old case that featured some unlikely moments–such as Viacom’s lawyers at Shearman & Sterling describing the ins-and-outs of contemporary toddler television entertainment to an 82-year-old judge.

The Sanchezes, a Cuban-American family in Englewood, N.J., hired Balestriere in 2010 to bring a lawsuit claiming that Nickelodeon, which is owned by Viacom, cheated them out of millions. The family claimed the network gave them a 22-minute deadline to sign a convoluted contract that provided Caitlin just “a few hundred thousand dollars” for her voice acting work and related promotional activity, according to court transcripts. Balestriere soon reached a deal with Viacom and its lawyers at Shearman Sterling that got the Sanchezes an additional $450,000 tied to Caitlin’s residual earnings, plus $60,000 for past appearance fees. The deal also gives the Sanchez family rights in perpetuity to have its own auditor review Viacom’s calculations of residuals and merchandising.

Soon after the settlement was signed, the Sanchezes fired Balestriere and replaced him with Manhattan solo Susan Chana Lask. Armed with her new counsel, Caitlin Sanchez wrote a letter to the court urging Griesa to undo Balestriere’s work on the case. “Balestriere assured me he would take my case to trial,” the 15-year-old wrote. “Instead [he] violated the trust I had and victimized me…[he] started to force a settlement that I did not want and that was unfair to me.”

The judge first refused to undo the settlement in a 2010 opinion. Then, at a hearing last November, he again affirmed the deal but admitted that he had been “remiss” not to ask for further briefing from Balestriere explaining how he arrived at his $193,000 fee. Griesa concluded Monday that the fee passed muster, though he lowered Balestriere’s cut of Sanchez’s future earnings from 30 percent to 15 percent.

The transcript of the November 2011 hearing is worth a read, both for litigation junkies and Dora fans. Griesa admits to having watched little television since Seinfeld, so Shearman’s Stephen Fishbein wound up walking him through everything from who “Dora” is to how reruns work. “It was almost hysterical,” Lask, the Sanchezes’ lawyer, told us. “Why should we have to explain those things to him?” (Fishbein wasn’t immediately available to comment.)

Balestriere, for his part, praised Griesa’s latest ruling. “The decision reconfirms what I already knew–that [our firm] got a good result against a tough adversary,” he told us. “Obviously I never forced [the Sanchezes] into a settlement. I don’t see how I could.” He added that he thinks his proposed 30 percent cut of Sanchez’s residual earnings was reasonable and supported by case law, but that he respects the judges’ ruling.

“I wish Caitlin all the best,” Balestriere said. “I think it’s unfortunate that the case has continued as long as it has.”

Lask no longer represents the Sanchezes, but she nonetheless told us she’s glad Griesa lowered Balestriere’s cut of Caitlin’s future earnings. Lask said she and her former clients parted ways amicably.

The Sanchezes current lawyers at Harwood Feffer and Moritt Hock & Hamroff have already appealed Griesa refusal to vacate the settlement to the U.S. Court of Appeals for the Second Circuit. Harwood Feffer name partner Robert Harwood declined to comment on whether the firm plans to appeal Monday’s ruling on Balestriere’s attorneys fees.

Dora, meanwhile, is still running strong. These days, according to Wikipedia, her voice in the series is being supplied by 12-year-old Fátima Ptacek. Media lawyers, take note.

(This story has been updated to reflect that the Sanchezes’ settlement with Viacom includes the right to future audits related to royalty calculations.)