The world 's largest economy has been hurt by sagging housing market , tight credit , and soaring energy costs .