Rupee trims fall as shares end higher