Americans stepped up their spending in May, showing still solid demand as they faced high interest rates and rising prices.