Train owners will pay an estimated $18 million to make the $2.5 billion, 1,200-mile (2,100-kilometer) Long Island Rail Road (LIRR) Long Beach-Queensborough line, which will…