A federal judge agreed Friday to block the Trump administration from dismantling the Consumer Financial Protection Bureau.