U.S. gasoline prices continue to inch higher after crossing the $4 a gallon threshold on Tuesday for the first time since 2022.