UK soldiers ousted due to sexuality can reclaim medals