Target plans to spend billions of dollars this year to end a persistent sales slump while winning back customers.