Assistant Treasury Secretary Michael Barr, who oversees the department's work on credit unions, banks and other financial institutions, plans to leave office by the end of the year to return to academia.