Fast-rising gas prices lifted the Federal Reserve's preferred inflation gauge to 3.5% in March, its highest rate in almost three years.