The Democrats won both houses of Congress, and from January they will be able to block legislation, delay senior appointments and open investigations against the administration.