UK Prime Minister Theresa May's government has won a no confidence vote, but still needs to find a way out of the deepest crisis in British politics for half a century.