The first rise in four years is the latest spending pledge made by ministers ahead of the general election.