OTTAWA — The federal government says it shortchanged hundreds of thousands of veterans and their survivors over seven years, and is preparing to compensate them a total of $165 million.