The change in the balance of power sets up a clash with the Trump administration on oversight and other legislative priorities.