European leaders have been pulled to the right on migration, the climate crisis and Israel. Their weakness is undermining the democratic principles on which the EU was built