For Obama, a steep learning curve as C-in-C