Authorities are investigating the social-media platform’s role in deepfake images and alleged foreign interference in French politics.