A judge has ordered social media giant X, formerly known as Twitter, to be taken down in Brazil.