The Marxist lawmaker who won Sri Lanka’s presidency faces a key challenge in how to balance ties with his country’s two most crucial partners, India and China, as he seeks to draw foreign investment and pull the economy out of the doldrums