Sperling has spent the first two years of the Obama administration as a counselor to Treasury Secretary Timothy Geithner .