A bill backed by state House leaders would ban state or local government agencies from paying ransom to hackers who take over their systems.