The city had warned that it could pull out unless the government offered financial guarantees.