Focusing on the rising costs of groceries and gas, and promising new investigations of President Joe Biden’s administration, Republicans won a slim majority in the House in the midterm elections.