Prime Minister Narendra Modi has become India’s longest-serving continuously elected prime minister, surpassing the record held by the country’s first prime minister, Jawaharlal Nehru.