Nicaragua court opens way for Ortega re-election