Brazilian president avoids bribery trial