Military convictions 'were fundamentally unfair, plagued by legal errors, and tainted by racial discrimination,' says president