The World Bank has signed a $975 million loan agreement with the Indian government to fund a railway freight project, a government statement said late Thursday.