I believe that the government paid war widows of both sides a small pension for their lifetime. They defined a war widow as someone who married a civil war veteran. I've read there were a lot of May-September marriages between very young women and very old civil war veterans.
"
The last person to receive a pension from the American Civil War has died.
Irene Triplett had collected a $73.13 check every month — a century and a half after the war ended — up until her death at the age of 90 on Sunday,
according to her obituary in The Wall Street Journal.
There were several factors for the shocking payouts. Triplett’s father, Pvt. Mose Triplett, fathered her during his second marriage when he was just a few weeks away from turning 84 years old.
And Irene, who suffered from mental disabilities, qualified for the pension as a helpless adult child of a veteran, receiving $876 a year. She passed away due to complications with a surgery in a North Carolina nursing home where she resided."
That article was from the June 4th, 2020 edition of the New York Post.
After doing some quick research, civil war pensions were far more extensive than I believed. There was a federal program for both black and white veterans and their dependents, but the former Confederate states had to each develop their own systems.