The results should put the Indian prime minister on a stronger footing ahead of a general election in 2029.