Aung San Suu Kyi loses court battle as junta heads to election victory