Sri Lanka’s Supreme Court on Tuesday suspended the president’s order to dissolve Parliament and hold new elections, opening the way for lawmakers to vote on whether to accept his earlier ouster of the prime minister.

Sri Lanka has been in a political crisis since Oct. 26, when President Maithripala Sirisena suddenly fired Prime Minister Ranil Wickremesinghe and replaced him with former strongman Mahinda Rajapaksa.

A supporter of Sri Lanka's ousted Prime Minister Ranil Wickremesinghe celebrates after the Sri Lankan Supreme Court suspended dissolution of parliament by President Maithripala Sirisena, outside the court complex in Colombo, Sri Lanka, Tuesday, Nov. 13, 2018. Sri Lanka's Supreme Court has suspended a presidential decree dissolving Parliament and ruled that an earlier decree summoning lawmakers on Wednesday is valid. On Oct. 26, Sirisena abruptly ousted Wickremesinghe and replaced him with former strongman Mahinda Rajapaksa. Placard reads
A supporter of Sri Lanka’s ousted Prime Minister Ranil Wickremesinghe celebrates after the Sri Lankan Supreme Court suspended dissolution of parliament by President Maithripala Sirisena, outside the court complex in Colombo, Sri Lanka, Tuesday, Nov. 13, 2018. Sri Lanka’s Supreme Court has suspended a presidential decree dissolving Parliament and ruled that an earlier decree summoning lawmakers on Wednesday is valid. On Oct. 26, Sirisena abruptly ousted Wickremesinghe and replaced him with former strongman Mahinda Rajapaksa. Placard reads “Respect the constitution.” (AP Photo/Eranga Jayawardena)

A day later Sirisena suspended Parliament, apparently to allow Rajapaksa time to gather support among lawmakers. But Wickremesinghe insisted his firing was unconstitutional. He refused to vacate his official residence and demanded that Parliament be summoned to prove he still has support.

Amid mounting pressure from political opponents and foreign governments, including the United States and the EU, to convene Parliament to end the impasse, Sirisena announced the legislature would return this Wednesday.

Supporters of Sri Lanka's ousted Prime Minister Ranil Wickremesinghe shout slogans as they celebrate after the country's Supreme Court suspended dissolution of parliament by President Maithripala Sirisena, outside the court complex in Colombo, Sri Lanka, Tuesday, Nov. 13, 2018. Sri Lanka's Supreme Court has suspended a presidential decree dissolving Parliament and ruled that an earlier decree summoning lawmakers on Wednesday is valid. On Oct. 26, Sirisena abruptly ousted Wickremesinghe and replaced him with former strongman Mahinda Rajapaksa. (AP Photo/Eranga Jayawardena)
Supporters of Sri Lanka’s ousted Prime Minister Ranil Wickremesinghe shout slogans as they celebrate after the country’s Supreme Court suspended dissolution of parliament by President Maithripala Sirisena, outside the court complex in Colombo, Sri Lanka, Tuesday, Nov. 13, 2018. Sri Lanka’s Supreme Court has suspended a presidential decree dissolving Parliament and ruled that an earlier decree summoning lawmakers on Wednesday is valid. On Oct. 26, Sirisena abruptly ousted Wickremesinghe and replaced him with former strongman Mahinda Rajapaksa. (AP Photo/Eranga Jayawardena)

But last Friday, he instead dissolved Parliament and called new elections in January. Opponents said Sirisena made the decision because Rajapaksa had been unable to assemble a majority.

Supporters of Sri Lanka's ousted Prime Minister Ranil Wickremesinghe shout slogans as they celebrate after the Sri Lankan Supreme Court suspended dissolution of parliament by President Maithripala Sirisena, outside the court complex in Colombo, Sri Lanka, Tuesday, Nov. 13, 2018. Sri Lanka's Supreme Court has suspended a presidential decree dissolving Parliament and ruled that an earlier decree summoning lawmakers on Wednesday is valid. On Oct. 26, Sirisena abruptly ousted Wickremesinghe and replaced him with former strongman Mahinda Rajapaksa. (AP Photo/Eranga Jayawardena)
Supporters of Sri Lanka’s ousted Prime Minister Ranil Wickremesinghe shout slogans as they celebrate after the Sri Lankan Supreme Court suspended dissolution of parliament by President Maithripala Sirisena, outside the court complex in Colombo, Sri Lanka, Tuesday, Nov. 13, 2018. Sri Lanka’s Supreme Court has suspended a presidential decree dissolving Parliament and ruled that an earlier decree summoning lawmakers on Wednesday is valid. On Oct. 26, Sirisena abruptly ousted Wickremesinghe and replaced him with former strongman Mahinda Rajapaksa. (AP Photo/Eranga Jayawardena)

The Supreme Court ruled Tuesday to suspend the president’s order until Dec. 7 after 13 political parties and individuals filed petitions with the court calling the dissolution unconstitutional. It said it would hold hearings on the case starting Dec. 4.

Opposition supporters welcomed the ruling. Lawmaker Ajith Perera said Parliament will meet as scheduled on Wednesday to prove that Wickremesinghe has the backing of a majority.

FILE - In this Monday, Nov. 5, 2018, file photo, Si Lankan President Maithripala Sirisena waves to supporters during a rally held outside the parliamentary complex in Colombo, Sri Lanka. The Sri Lankan Supreme Court suspends Sirisena's dissolution of Parliament; lawmakers to meet Wednesday amid crisis. (AP Photo/Eranga Jayawardena, File)
FILE – In this Monday, Nov. 5, 2018, file photo, Si Lankan President Maithripala Sirisena waves to supporters during a rally held outside the parliamentary complex in Colombo, Sri Lanka. The Sri Lankan Supreme Court suspends Sirisena’s dissolution of Parliament; lawmakers to meet Wednesday amid crisis. (AP Photo/Eranga Jayawardena, File)

Tensions had been building between Sirisena and Wickremesinghe for some time, as the president did not approve of economic reforms introduced by the prime minister. Sirisena has also accused Wickremesinghe and another Cabinet member of plotting to assassinate him, a charge Wickremesinghe has repeatedly denied.

Sirisena was also critical of investigations into military personnel who were accused of human rights violations during Sri Lanka’s long civil war against a Tamil separatist group, which ended in 2009.

Source: The Associated Press