The deal includes increased social spending and record investment in transport infrastructure.