You're right -- not until fairly recent years did the Federal government treat Confederates the same as other soldiers. Here's the link --
http://www.cem.va.gov/cem/hm/hmcivil.asp