Twitter and Facebook are scrambling to assuage conservative leaders who have sounded alarms — and sought to rile voters — with accusations that the country's tech giants are censoring right-leaning posts, tweets and news.