Obama responds to Republican victories, looks ahead