Wisconsin rail service to Chicago and the Pacific Northwest will share in a $140 million upgrade from the federal government.