The Fed signaled that it still expects to cut rates twice this year even as it sees inflation staying stubbornly elevated.