President Donald Trump signed an executive order Thursday giving federal agencies a shared ethics framework for developing and using artificial intelligence.