Millions will be spent trying to prevent ‘tram surfing’ following fatalities in recent years — despite councillors’ opposition.