Sir Keir Starmer has said fixing the UK's welfare system is a "moral imperative" after the government's U-turn.