President Donald Trump and others have accused the Consumer Financial Protection Bureau of politicized enforcement and called it a burden on free enterprise.