India originally intended to phase out English as an official language. In its constitution, written in 1950, it states that English would be phased out as a national language in 1965 in favor of Hindi. The Official Language Act of 1963 allowed English to continue to be used at least for a time.
When in 1964 proposals were made at the national government to begin phasing out English, there were riots. States whose official languages did not include Hindi, in particular those states whose Dravidian languages were unrelated to Hindi, did not want to be forced to switch. The Official Language Act was amended in 1967 so that English would be replaced only with the consent of every single State where Hindi was not an official language. That has not happened. Today, all national government laws and statutes, and all works of the Indian Supreme Court, are published in English.
Pretty good for a language indigenous to a medium sized island in the north Atlantic.