The Labor Department reported yesterday that soaring costs for gasoline and food pushed inflation at the wholesale level up by a bigger-than-expected 1.8% in June, leaving inflation rising over the past year at the fastest pace in more than 25 years.