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