US inflation and consumer spending cooled in December