State officials say new trainsets cost $25 million each, and the federal funding is expected to cover half the cost of three new trainsets, including the one that crashed in December 2017 and sent train cars dangling over Interstate 5.