Spyware software will be permitted to gain access to electronic devices and networks for serious crime investigations.