WASHINGTON — After a federal judge ruled last month that local public transit officials ran afoul of the First Amendment in delaying the posting of a controversial advertisement in rail stations, the agency agreed to pay $35,000 in attorney fees and costs to the group behind the ad.

The American Freedom Defense Initiative sued the Washington Metropolitan Area Transit Authority in September after learning that the agency was postponing the ad. The ad read: “In any war between the civilized man and the savage, support the civilized man,” with the tag, “Support Israel/Defeat Jihad.”