Democrats gain in House races