Republicans make gains in governorships