With a federal court endangering the status of its director and its second in command leaving, the Consumer Financial Protection Bureau has suddenly been forced to shift from playing offense to defense.