German parties agree on massive defense, infrastructure funding