After renewed outrage over a hacking scandal involving former federal operatives, U.S. lawmakers are considering adopting new restrictions that would limit the kinds of work ex-intelligence officials could do for foreign governments after leaving the service.