Trump reacts angrily as Democrats make major gains in the US midterms, taking control of both chambers of Congress and threatening his agenda