Self-driving cars must have technology to prevent use in terror, lawmakers say