Mayor threatens to quit over fund cut