Elon Musk’s efforts to buy Twitter Inc. received the enthusiastic backing of President Jair Bolsonaro during a short and unexpected visit to Brazil, where allegations of fake news spreading through social media are a hot issue ahead of October’s election.