Consumer spending rose in June amid rising costs and tariffs