BERLIN – Germany is in for a massive ramp-up in spending under an agreement by the parties hoping to form its next government, with a 500 billion euro special fund sought for infrastructure and plans to unshackle defence investment from its debt rules.