President Barack Obama says the US will work with private companies on its plan to send humans to Mars in the 2030s.