The Federal Reserve has raised interest rates for the first time in nearly three years as it intensifies its battle against stubbornly high inflation.