Democrats immediately vowed to make abortion rights a central focus in next year’s midterm elections, where their prospects have been viewed as dim, while many Republicans sought to keep the focus on inflation and other problems facing President Biden.