Key U.S. inflation gauge rose 3.1%