why did the government give land grants to railroad companies