For the purposes of this title the consent of the United States is given to any railroad or canal company to convey to the State transportation department of any State, or its nominee, any part of its right-of-way or other property in that State acquired by grant from the United States.