Historic victory delivers profound message to Democratic Party as it reckons with a future under Trump