U.S. stocks advanced on Thursday as investors reacted to U.S. President Donald Trump's announcement of planned reciprocal tariffs.