Mayor wins surprising showdown over rollback of firefighting equipment