Thousands of veterans could lose pensions under new budget deal