As the lone holdover from the Bush cabinet, Defense Secretary Robert M. Gates is working to secure a role in the Obama inner circle.