President urges Congress to head off potential rail strike