State to splash $130 million to separate passenger and freight trains in town