The result was an unexpected victory for Indonesia’s sole opposition party, the Indonesian Democratic Party of Struggle.