South Korea's Constitutional Court has overturned parliament's impeachment of Prime Minister Han Duck-soo and reinstated him as acting leader.