The chancellor says he will uphold pre-Covid funding pledges on police, nurses and schools.