Republican gains in Congress alter relationship with the White House