Wednesday turned into a big day for stocks — the S&P 500 index had its largest one-day percentage gain in nearly two years — after the Federal Reserve raised the federal funds rate by half a percentage point and announced plans to begin reducing its bond portfolio next month.