Barack Obama became the first sitting US president to visit a federal prison, amid a push to reform America's expensive and overcrowded correctional system.