Republicans appeared poised to gain at least three House seats and two Senate seats from Democrats led by House Speaker Michael Madigan.