There has been major travel disruption after a car smashed through a rail bridge and fell on the tracks in Greater Manchester.