Top executives from Facebook Inc. and Twitter Inc. defended their companies in the U.S. Congress on Wednesday over what lawmakers see as a failure to combat continuing foreign efforts to influence U.S. politics.