U.S. Congress backs legislation to block rail strike