Bucking the trend, shares of companies engaged in railways-related businesses rallied after the Cabinet fully opened up the railway infrastructure segment, like high-speed trains, for foreign investment.