The U.S. economy faced intensifying headwinds in May as both consumer and wholesale inflation metrics surged to multi-year highs.