Republicans expected to seize House, Senate in the balance, putting president's agenda on the line as predecessor teases 2024 comeback bid