After a blackout of more than three weeks, X appears ready to comply with court orders in Brazil to restore access to it