British Prime Minister Theresa May has survived a challenge to her leadership triggered by angry pro-Brexit lawmakers within her party.