Three local companies would benefit from the bill.

BAE Systems of Nashua would receive $7 million for an advanced naval under-sea detection system, and $6 million to research affordable digital receiving and jamming technology for the Air Force.

Insight Technologies of Londonderry would receive $13 million for an infrared device to provide Marines with the capability to illuminate and mark targets, and aim their weapons at night.

Teradyne of Nashua would receive $3 million for the development of small, mobile testers so crew members can test circuit boards on submarines.