South Korea court rules in favour of Samsung subsidiaries merger