German parliament passes historic spending reforms