Consumer bankruptcy lawyers are “debt relief agencies” under a 2005 federal bankruptcy law and restrictions on the type of advice they can give clients are constitutional, the U.S. Supreme Court ruled on Monday.

In a challenge brought by a Minnesota law firm, the justices unanimously held that the plain language of the Bankruptcy Abuse Prevention and Consumer Protection Act clearly indicates that lawyers function as debt relief agencies when they provide bankruptcy help to consumers covered by the law. The 2005 law was enacted to combat abuse of the bankruptcy system.