Facebook Inc. has quietly developed a censorship tool that could persuade China to allow the world’s biggest social media network to re-enter the world’s second-largest economy after a seven-year ban,...