Republicans maintain their grip on state capitals