A major law passed by the German parliament has unlocked €500 billion for defence spending, as a senior officer calls for the return of national service.