Obama vows to work with GOP after ‘shellacking’