Ambac and rehabilitator reach amended bankruptcy reorganization plan