US President Barack Obama has defended his decision to cut nearly three decades off Chelsea Manning's prison term.