Brazil’s president wins, justice minister loses in Congress