Germany’s coalition averts crisis with pension and engine deal