Sensex Nifty end higher but IT auto stocks limit gains Tata Motors down