CM Udhav Thackarey quits after SC refuses to stay floor test