Developers must invest in rail in return for approval to build