An Idaho locomotive maker will share in a $115 million deal to supply 20 new commuter rail locomotives to Boston’s public transit agency, but the package is smaller than one floated two years ago before it bogged down in an international trade dispute.