A federal judge in New York ruled on Thursday that the structure of the U.S. Consumer Financial Protection Bureau is unconstitutional, forbidding the agency from suing a company that makes cash advances to consumers waiting on payouts from settlement agreements or judgments entered in their favor.