India’s benchmark indices, the Nifty and Sensex, ended their eight-day losing streak, led by private banks, auto, and IT stocks.