CORONADO, Calif. — After years of strong gains in states across the country, Republicans now fear they stand to lose hundreds of state legislative seats in next year’s midterm elections if there is a significant voter backlash against President Trump.