Prime Minister Narendra Modi’s coalition led in a majority of seats Tuesday in India’s general election, according to early figures, but faced a stronger challenge from the opposition than expected after it pushed back against the leader’s mixed economic record and polarizing politics.