Justice Sanjiv Khanna was sworn in as the 51st Chief Justice of India, succeeding DY Chandrachud, in a ceremony attended by top political and legal figures.