Sri Lankan president reinstates the prime minister he sacked