In the battle of the fashion dolls, Barbie manufacturer Mattel Inc. must pay $137 million in attorney fees and costs to MGA Entertainment Inc., maker of Bratz, under a federal judge’s ruling.

Tuesday’s order by U.S. District Judge David Carter, which also struck down MGA’s request to pursue trial over trade-secret claims against Mattel, clears the way toward ending the federal case between the competitors.