.The order follows months of back-and-forth between the social-media platform and Brazil's highest courtroom.