Indian shares ended higher on Tuesday, recovering from earlier losses, as gains in energy stocks helped offset lingering trade tensions in Asia ahead of the deadline for imposition of tariffs by the U.S. on China.