President Obama signed an executive order that would impose financial and travel sanctions against foreign-based hackers targeting the United States.