South Korea court reinstates impeached PM Han as acting president