Hanks famously ran into Bristol Palin at a West Hollywood bar and ripped her mother, Sarah Palin, and baby daddy, Levi Johnston. She then asked if he was gay.

Parts of the exchange were caught on camera, and Hanks objected to clips of it that were used in promos for Life's a Tripp, which briefly aired on Lifetime.

A judge has ordered Hanks to cover Palin's legal fees.

The court victory is welcome news for the single mom, whose reality show was axed after less than a season, and who was voted off Dancing With the Stars ... and who had to find out Levi Johnston and Sunny Oglesby married last weekend through the media like everyone else.