Connecticut is set to receive funding to repair bridges and update aging infrastructure that serve major rail lines along Amtrak’s busy Northeast Corridor and other regional train services.