Germany agrees timeline, compensation for coal phase-out