President Donald Trump on Tuesday signed a law that said manned missions to deep space, including to Mars, would be the US space agency's main goal in the decades to come.