Raising rates still helps to maintain price stability even if it is a supply shock, it just does it via demand destruction.
The aim is to stop inflation i.e. achieve price stability. Keeping unemployment low is a nice bonus if it can be done.
Also although the start of the inflation seemed to have been a supply shock due to the pandemic, whether that has continued to be the cause vs. the pandemic spending, isn't so clear now. Of course, the war in Russia and now the Middle East isn't helping the supply side either.