Long term credit assignment with temporal reward transport