What is the role of TRAI in approving spectrum for Railways

The Cabinet has approved spectrum for Railways despite TRAI's nod. Explain the role of TRAI in this process.