The Supreme Court on Thursday issued a ruling upholding the funding structure of the Consumer Financial Protection Bureau, a key consumer watchdog and banking regulator.