A Brazilian judge has released from prison four players from the River Plate women’s soccer team who were arrested for an alleged racial slur during a match.