What does "dedicate shrines" mean?

Religious people may create a shrine for a deity to thank that deity for helping them. In this case, it is a metaphor. Inflation is viewed as a kind of natural disaster that humans have little influence on: if inflation is halved, that is seen as help received from a deity, metaphorically. So dedicating a shrine to a deity is a metaphorical way of saying people would be very, very happy if inflation were halved.