The U.S. Supreme Court delivered a major victory to the Consumer Financial Protection Bureau on Thursday, rejecting a challenge from the payday loan industry to its independent funding structure that would have jeopardized the agency’s regulatory activities.

In a 7-2 ruling, the court held that the Dodd-Frank Act did not violate the Constitution by funding the consumer finance watchdog through the Federal Reserve rather than through the annual congressional appropriations process.