The Federal Reserve raised its key interest rate for the first time in three years amid persistent inflation caused in part by high energy prices.