The costs of gas, food and other necessities jumped in May, raising inflation to a new four-decade high and giving…