British Prime Minister Theresa May said she was prepared to quit in order to get her Brexit divorce deal approved by parliament.