The American consumer’s confidence in the U.S. economy improved slightly in February after cratering a month earlier.