The provisions of section
935 of title
43 relating to the rights of several railroads through any canyon, pass, or defile are extended and made applicable to rights of way granted under sections
312 to
318 of this title and to railroad companies obtaining such rights of way.