Obama and Republican leader pledge to work together