Major U.S. equities indexes advanced on Thursday, changing course from declines the previous day after the Federal Reserve held interest rates steady and suggested an uncertain path toward widely anticipated rate cuts.