This is not true. Indian courts are very much functional and is not elected by politicians. So they are not as hamstrung as any US courts if you are going to start comparing. Only issue is the long delays involved.
Approved doesn't mean elected via political campaigning. So judges doesn't need to take any political stance to make any political party happy. Of course there is the issue of after retirement appointments. But not every judge does that. Things won't become better if people don't put pressure on representatives to make ethical laws.
All judicial appointments need to be approved by the government. Retired judges get plum political appointments including to the Rajya Sabha.