Brazil’s Supreme Court authorized the return of X after Elon Musk complied with its demands, including taking down some user accounts and appointing a legal representative for the platform in the country.