A federal judge has ruled that the CFPB has overstepped its authority in its attempts to investigate an organization that accredits for-profit colleges.

This is a first-of-its-kind decision. The CFPB has faced (and is facing) a variety of court challenges, but this marks the first time a judge has officially ruled the agency guilty of overstepping.

“What makes this rebuke even more important is that it arises in a situation where courts almost invariably give federal agencies a lot of leeway—namely, issuing a civil investigative demand,” said Alan Kaplinsky, head of the Consumer Financial Services Group at the Ballard Spahr law firm.