Russian court rules president can run past 2-terms