The rate hike, which is the largest since 1994, is an effort to stave off inflation and slow the economy.