The House of Representatives has passed a bipartisan bill to provide protection for insurers against acts of terrorism.