Brazil's top court has given social media platform X the green light to resume operations in Latin America's largest country, effective immediately.