Many small businesses are breathing a bit easier as inflation has cooled and the race for workers slows. But consumers’ steady embrace of credit cards is taking a growing bite out of their margins.