The move follows similar restrictions on TikTok in democratic countries amid fears about the popular video-sharing app’s Chinese connections. But the French decision also encompassed other platforms widely used by government officials, lawmakers and President Emmanuel Macron himself.