The railway plans could force companies to sell rivals’ tickets on their websites and share data with booking platforms.