Judge in Rio had ordered film’s withdrawal, reviving allegations of censorship under far-right government of Jair Bolsonaro