The two railroads are the nation’s two smallest, but the approval Wednesday by the U.S. Surface Transportation Board comes after a lengthy and arduous review because their coupling will create the only railroad linking Canada, Mexico and the United States.