The EU is facing stark divisions, with Poland and Hungary cutting back on basic democratic freedoms. It’s a challenge the next German government will have to face.