Edinburgh tram workers have cancelled industrial action after union members reached a deal with their employed over rest periods and toilet breaks.