An Illinois attorney lambasted last month by a federal appeals panel for submitting a “bizarre” and “incoherent” court filing was ordered Monday to pay legal fees as a sanction for wasting the resources of the court and the defense lawyers who defeated alleged discrimination claims.

The lawyer, Jordan T. Hoffman, apologized to the court in late November, asserting that he made a “grave error in judgment” in agreeing to represent a longtime friend in the case in the U.S. Court of Appeals for the Seventh Circuit. That friend, Hoffman said, wrote and filed the brief under Hoffman’s name.