Deutsche Bahn aims to improve its tarnished image of being hugely dysfunctional with a big investment program. But just as the reconstruction has begun, a political setback looms, jeopardizing the plan.