Theresa May wins Brexit assurances from EU on eve of crucial vote