A Russian court on Thursday upheld a decision to keep former U.S. Marine Paul Whelan in custody until Sept. 13 during his trial on spying charges.