Musk’s X will be reinstated in Brazil after complying with Supreme Court justice’s demands, a court statement says