Big brands are allocating small amounts of their advertising budget to Elon Musk’s X, seeking to avoid being seen as boycotting the social media platform and triggering a public fallout with its billionaire owner.