South Korea court upholds jail for ex-president Park, clearing way for chance of a pardon