Stocks closed Tuesday with just slight losses, as upbeat comments from a top Fed official gave investors reason to hope that an interest-rate hike won'