Republicans win key local races despite blue wave