Residents across the Northeast faced the prospect of days without electricity after an early-season storm dumped as much as 30 inches of wet, heavy snow that snapped trees and power lines and disrupted plans for Halloween trick-or-treating.