The Democrats’ advances were essential, and will check Donald Trump’s power as well as boosting their morale. But disappointments show how far there is to go