Stocks rally, US imposes sanctions on Iran