Rohit Chopra, director of the Consumer Financial Protection Bureau, posted a letter to President Donald Trump on X announcing that he would no longer serve in the role.