Brazil’s top electoral court rules that the jailed ex-president cannot stand in October’s election.