The NDA alliance, led by Prime Minister Narendra Modi’s Hindu nationalist Bharatiya Janata Party, won 294 seats, more than the 272 seats needed to secure a majority but far fewer than expected, and the BJP failed to secure a majority on its own for the first time since 2014.