Projections show Democrats winning control of the House and Senate, a rare feat that shifts the balance of power in Washington.